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:
2. In the system variable option -> Create a new path to
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!