- Spring MVC Beginner’s Guide
- Amuthan G
- 315字
- 2021-07-16 11:25:38
Time for action – setting up environment variables
After installing JDK, we still need to perform some more configurations to use Java conveniently from any directory on our computer. By setting up the environment variables for Java in the Windows operating system, we can make the Java compiler and tools available to the entire operating system:
- Navigate to Control Panel | System | Advanced system settings.
- A System Properties window will appear; in this window, select the Advanced tab and click on the Environment Variables button to open the environment variables window.
- Now, click on the New button in the System variables panel, enter
JAVA_HOME
as the variable name, and enter the installed JDK directory path as the variable value; in our case, this isC:\Program Files\Java\jdk1.7.0_51
. In case you do not have proper rights for the operating system, you will not be able to edit System variables; in that case, you can create theJAVA_HOME
variable under the User variables panel. - Now, in the same System variables panel, double-click on the PATH variable entry; an Edit System Variable window will appear.
Setting PATH Environment variable
- Edit Variable value of Path by appending the
;%JAVA_HOME%\bin
text to its existing value. - Now click on the OK button.
Now we have installed Java in our computer. To verify whether our installation has been carried out correctly, open a new command window and type java –version
and press Enter; you will see the installed version of Java on the screen:
C:\>java -version java version "1.7.0_51" Java(TM) SE Runtime Environment (build 1.7.0_51-b13) Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
推薦閱讀
- 數據庫基礎與應用:Access 2010
- Effective Amazon Machine Learning
- Neural Network Programming with TensorFlow
- Dependency Injection with AngularJS
- Spark大數據分析實戰
- gnuplot Cookbook
- MySQL技術內幕:SQL編程
- Python數據分析從小白到專家
- 計算機視覺
- 數據庫查詢優化器的藝術:原理解析與SQL性能優化
- Node.js High Performance
- 算力經濟:從超級計算到云計算
- Microsoft Dynamics NAV 2015 Professional Reporting
- 大數據技術體系詳解:原理、架構與實踐
- Learn Selenium