Home  >  Article  >  Java  >  Solution to the problem that java eclipse cannot be opened

Solution to the problem that java eclipse cannot be opened

尚
Original
2019-12-10 11:27:275381browse

Solution to the problem that java eclipse cannot be opened

This is a problem where the JDK is not configured properly. The solution is as follows:

Run CMD.

Enter java -version to see if there is any version prompt? If there is, it means your JDK is correct, then it is an Eclipse problem. There is no reference to other methods.

1) If not:

Click: "My Computer" - (right-click) "Properties" - "Advanced" - "Environment Variables" to pop up the "Environment Variables" of Windows Configure the card.
Perform three operations under the "System Variables" column:

①Create "Java_Home", value: the absolute path where the JDK is located (for example, D:\Program Files\Java\jdk1.5.0_04\) .

②Create a new "Classpath" (if it already exists, edit it directly), value: .;%Java_Home%\lib (if there is original content in the value, separate it with a semicolon).

③Create a new "Path" (if it already exists, edit it directly), value: %Java_Home%\bin; (If there is original content in the value, separate it with a semicolon).

Or

CLASSPATH

C:\Program Files\Java\jdk1.6.0_03\lib;E:\workbench\lib\javax. servlet.jar;

JAVA_HOME

C:\Program Files\Java\jdk1.6.0_03

Path

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;%JAVA_HOME%\bin;

For more java knowledge, please pay attention to the java basic tutorial column.

The above is the detailed content of Solution to the problem that java eclipse cannot be opened. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn