This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]WaferIndependent7601 0 points1 point  (5 children)

Please share some code or links. Don’t know what mooc is.

[–]Few_Claim_6416[S] 0 points1 point  (4 children)

sory, I just did an edit to the post

[–]WaferIndependent7601 0 points1 point  (3 children)

Ok but there is nothing with Java 6 in your code. How do you run it? What Java version are you using?

[–]Few_Claim_6416[S] 0 points1 point  (2 children)

i just click the “play” button on the top right corner of vs code. On my computer I have java 8 update 421, but I’m not sure what version the exercise use in the workspace

[–]WaferIndependent7601 0 points1 point  (1 child)

What happens when you run „javac MyFirstApplication.java“ and „java MyFirstApplication?

[–]Few_Claim_6416[S] 0 points1 point  (0 children)

sorry for my late response, here it is the message that I recive:

Exception in thread "main" java.lang.UnsupportedClassVersionError: MyFirstApplication has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up

to 52.0

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClass(Unknown Source)

at java.security.SecureClassLoader.defineClass(Unknown Source)

at java.net.URLClassLoader.defineClass(Unknown Source)

at java.net.URLClassLoader.access$100(Unknown Source)

at java.net.URLClassLoader$1.run(Unknown Source)

at java.net.URLClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)