Accepted answer

check for system environment variables and user environment variables... seems like eclipse is taking variables from different environment..

if problem persist then set the java_home in eclipse to tell eclipse explicitly where java is installed in the system. to set java_home in eclispe few options given below.

to set java_home in eclipse navigate to windows menu -> preferences -> add runtime variables


navigate to run menu -> external tools configurations -> navigate to environment tab -> add java_home variable and it's path as it's value to set environment variable in eclipse.


actually the path/classpath/any setting is on "administrator" privilege and will not be accessed if eclipse is started directly. right click on eclipse.exe and select "run as administrator".
hope it works


this seems a bug in eclipse to me.

eclipse comes with java built in already. it's somewhere deep down in eclipse. users have no idea where it is. only eclipse itself can set java_home properly.

installing your own java and setting java_home to point to there seems a bad idea, introducing potential conflicts between the built-in java version and java_home contents

Related Query

More Query from same tag