Friday 12 July 2019

java - Unsupported major.minor version 52.0

Pictures:



Command Prompt showing versions
Command Prompt showing versions



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





HelloWorld Applet










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...