0

I made a utility in using javafx on my system with jdk1.8 installed. Now I need to run this on my server it has jdk1.6. So while running this utility, I am getting error as,

Error occured during the initialization of vm
java/lang/UnsupportedClassVersionError: java/lang/Object : Unsupported major.min
or version 52.0 

So can anybody please tell is there any possible way to run it on existing jdk1.6 without installing jdk1.6.

Tiny
  • 27,221
  • 105
  • 339
  • 599

1 Answers1

0

you can change your jdk version in eclipse as:

You manage the list of available compilers in the Preferences -> Java -> Installed JRE's tab.

In the project build path configuration dialog, under the libraries tab, you can delete the entry for "JRE System Library", click on "Add Library" and choose the installed JRE to compile with. Some compilers can be configured to compile at a back-level compiler version.

Haseeb Anser
  • 494
  • 1
  • 5
  • 19