Saturday 11 November 2017

java - Unsupported major.minor version 52.0

Pictures:



src="https://i.imgur.com/J6SWWBb.png" alt="Command Prompt showing
versions">
Command Prompt showing
versions



src="https://i.imgur.com/Xj8mCUp.png" alt="Picture of
error">
Picture of
error




Hello.java



import
java.applet.Applet;
import java.awt.*;

public class Hello
extends Applet {

// Java applet to draw "Hello World"

public void paint (Graphics page) {

page.drawString ("Hello
World!", 50, 50);

}
}


Hello.html



class="lang-html prettyprint-override">


HelloWorld<br /> Applet





HEIGHT=150>






Error




Hello
: Unsupported major.minor version
52.0


What may the
problem be?

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...