- 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)
推薦閱讀
- Python廣告數據挖掘與分析實戰
- 文本挖掘:基于R語言的整潔工具
- R數據科學實戰:工具詳解與案例分析(鮮讀版)
- 數據結構與算法(C語言版)
- 數據要素五論:信息、權屬、價值、安全、交易
- OracleDBA實戰攻略:運維管理、診斷優化、高可用與最佳實踐
- 跟老男孩學Linux運維:MySQL入門與提高實踐
- 達夢數據庫運維實戰
- INSTANT Android Fragmentation Management How-to
- SQL Server深入詳解
- 數據庫與數據處理:Access 2010實現
- 計算機視覺
- ECharts數據可視化:入門、實戰與進階
- Learning Construct 2
- Swift 2 By Example