How to view the Eclipse JDK version currently being used?

1.Ecilpse actually comes J DK In fact, after you complete the installation default is the built-in J DK
own to install jdk is convenient to use in console ~~~
2. For example jdk directory you installed in C: \ folder jre6 and two lower jdk1.6.0_10 Program files \ Java, the environment variable is set as follows:
the PATH: after the value of the previously separated by semicolons plus the following values, such as "; C: \ Program files \ the Java \ jdk1.6.0_10 \ bin "
Create a classpath variable, the variable value"; C:. \ Program Files \ Java \ jdk1.6.0_10 \ lib \ dt.jar; C: \ Program Files \ Java \ jdk1. 6.0_10 \ lib \ tools.jar "

3. label window-> preferences-> java-> compiler to find JDK


According to the above way to find there may not be accurate, because if there are two versions of the JDK, you can reference different libraries in eclipse.
And what Project with which the library is determined by the project, the best eclipse so that if there is already an existing project and want to see it jdk version, select the project name, right-click, and then select the bottom of the "Properties (Properties ) ", and then in the dialog box to see" Java Compiler "item, behind the" Compiler compliance level "jdk version of this project is used in the.

 

Guess you like

Origin www.cnblogs.com/Wbin01/p/11108688.html