Home  >  Article  >  Java  >  How to set path in java?

How to set path in java?

藏色散人
藏色散人Original
2019-11-14 10:31:513949browse

How to set path in java?

How to set the path in java?

The steps to set the java path are as follows:

1. Right-click My Computer—>Properties—>Advanced—>Environment Variables—> System variables, as shown in the figure:

How to set path in java?

2. In the system variable option -> Create a new path to

How to set path in java?

java_home as follows C:\j2sdk1.4.2_01; Add the java bin path to the path, such as C:\j2sdk1.4.2_01\bin; Add .;lib\dt.jar;lib\tools.jar; to the new classpath; such as.;C: \j2sdk1.4.2_01\lib\dt.jar;C:\j2sdk1.4.2_01\lib\tools.jar;

The above is the detailed content of How to set path in java?. 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