java : how to fix the error : java.lang.UnsupportedClassVersionError

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
you [Music] hi I have made simple code written in Java language to dis apply HelloWorld in console the Java compiler works without problem but when I run the code I've got this error message and supported class version error so in this video tutorial I'll show you why this error happened and how to fix it first off check out the version of Java compiler by typing Java C space tag version as you can see the version of Java compiler is 1.8 let's check out the version of Java Runtime environment by typing Java space tag version the version for JRE or Java Runtime environment is 1.7 so I've compiled Java code with a newer version and when I try to run it with older version of JRE this erosion due to the different version basically JDK or Java development kit contains both the compiler and the job of runtime environment but my window system using JRE seven instead of JRE eight to solve this issue go to your system partition and open windows folder then open system 32 folder search for java dot exe rename it to java dot old dot exe now let's try to see the error fixed first off check out the version for both java compiler and java runtime environment now they have the same version let's run the compiled Java file that's all for this tutorial I hope it was easy to follow and helpful thanks for watching [Music]
Info
Channel: Safaa Al-Hayali
Views: 142,684
Rating: undefined out of 5
Keywords: java, java (programming language), programming, java tutorial, fix, how to fix, error, Safaa Al-Hayali, saf3al2a, Unsupported major.minor version 52.0
Id: ZK2-mIIHLbc
Channel Id: undefined
Length: 3min 2sec (182 seconds)
Published: Thu Jan 05 2017
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.