I'm new to all the Java stuff so sorry in advance if i ever mislead.
I have Eclipse Java EE IDE for Web Developers. Version: Juno Service Release 2 and i installed JBoss Hibernate tools extension. And while i was trying to add a configuration as in http://furqanlabs.blogspot.com/2013/01/hibernate-and-oracle-configuration.html this tutorial, i got such an error:
"Project DmisService has higher compiler option than running Eclipse. Hibernate plugins unable to load its classes. Please decrease the compiler option or run the Eclipse with higher JDK level."
So to know which JDK level my eclipse is using i did the followings:
i typed java -version on the comman line and i came up with the following result: java version "1.8.0_11"
and when i checked my environment variable for JAVA_HOME it is C:\Program Files\Java\jdk1.6.0_30. and the Java Compiler setting is also 1.6 (as jre of the project as i understood) for my project.
So i came up with another questions -> Why command line gives me different java version than environment variable?
and my original question:
- what exactly (i am also new the java terms) should i do to fix this problem?
Thank you very much for any suggestion.
edit: i also checked with eclipse: System.out.println(System.getProperty("java.version")); and it gives me 1.6.0_30