Download and configure JDK, java environment variables

http://jingyan.baidu.com/article/bea41d435bc695b4c41be648.html
1. Download JDK installation package from Oracle website
2. Install JDK is generally default
3. Configure the values ​​of java_home, path, classpath: My Computer Properties->Advanced- >Environment Variables->System Variables->①Create a new java_home (edit if there is one), variable name java_home, variable value C:\Program Files\Java\jdk1.6.0 (fill in according to the actual installation path)->②Create or edit classpath , the value is C:\Program File\Java\jdk1.6.0\jre\lib (according to the actual situation) -> ③ create or edit the path, the value is C:\Program Files\Java\jdk1.6.0\bin (the actual situation) .
4. Test: Start -> Run -> cmd to bring up the command prompt window -> enter java -version and press Enter -> if the installation is successful, the version information of java will appear.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326991369&siteId=291194637