• Register
0 votes
303 views

Problem :

I am getting bellow error while I'm trying to use visual studio code for Java.

this version of the java runtime only recognizes class file versions up to 52.0

6 5 3
6,930 points

1 Answer

0 votes

Solution:

You must be compiling with java 9, but still using JDK 8.0

You need to Install java 9 and also change your OS environment settings to point to the new JDK. 

This is working fine for me.

Further Readings:

https://github.com/yPedx/SpigotBoard/issues/16

9 7 4
38,600 points

Related questions

1 vote
1 answer 16 views
16 views
Problem: I Created a Loan.java and compile it with JDK 1.6 and Run Loan.class with JRE 1.5. C:\Program Files\Java\jre1.5.0_06\bin>java -version java version "1.5.0_06" The following thing gives an error message: C:\Program Files\Java ... Source)         at java.net.URLClassLoader.defineClass(Unknown Source)         at java.net.URLClassLoader.access$100(Unknown Source) what should i do next ..
asked Mar 27 LizzyM 6.1k points
2 votes
1 answer 21 views
21 views
Problem: I Create Loan.java and compile it with JDK 1.6 and Run Loan.class with JRE 1.5. C:\Program Files\Java\jre1.5.0_06\bin>java -version java version "1.5.0_06" its shows error like bellow C:\Program Files\Java\jre1.5.0_06\bin ... Unknown Source)         at java.net.URLClassLoader.defineClass(Unknown Source)         at java.net.URLClassLoader.access$100(Unknown Source) what should i do next ..
asked Mar 24 LizzyM 6.1k points
0 votes
1 answer 76 views
76 views
Problem : I am getting this error when I include an opensource library that I had to compile from source. java lang unsupportedclassversionerror bad version number in class file
asked Oct 23, 2019 peterlaw 6.9k points