How do I know what version of Java is being run in Eclipse?
Is there a way to write code to find out?
Is \"JRE System Library [JavaSE-1.6]\" in \"Package Exp
There are various options are available to test which java version is using your eclipse. The best way is to find first java installed in your machine.
run java -version command on terminal
then to check whether your eclipse pointing to the right version or not.
For that go to
Eclipse >> Preferences >>Java >>Installed JREs