- 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)
推薦閱讀
- GitHub Essentials
- 數(shù)據(jù)之巔:數(shù)據(jù)的本質(zhì)與未來
- Modern Programming: Object Oriented Programming and Best Practices
- 企業(yè)大數(shù)據(jù)系統(tǒng)構(gòu)建實(shí)戰(zhàn):技術(shù)、架構(gòu)、實(shí)施與應(yīng)用
- Libgdx Cross/platform Game Development Cookbook
- 大數(shù)據(jù):規(guī)劃、實(shí)施、運(yùn)維
- Access 2016數(shù)據(jù)庫技術(shù)及應(yīng)用
- 3D計(jì)算機(jī)視覺:原理、算法及應(yīng)用
- Spark大數(shù)據(jù)分析實(shí)戰(zhàn)
- 深入淺出 Hyperscan:高性能正則表達(dá)式算法原理與設(shè)計(jì)
- 視覺大數(shù)據(jù)智能分析算法實(shí)戰(zhàn)
- Augmented Reality using Appcelerator Titanium Starter
- SIEMENS數(shù)控技術(shù)應(yīng)用工程師:SINUMERIK 840D-810D數(shù)控系統(tǒng)功能應(yīng)用與維修調(diào)整教程
- The Natural Language Processing Workshop
- 數(shù)據(jù)分析思維:產(chǎn)品經(jīng)理的成長筆記