- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to configuring Java Environment on Windows?
Set path
Assuming you have installed Java in c:\Program Files\java\jdk directory −
Right-click on 'My Computer' and select 'Properties'.
Click the 'Environment variables' button under the 'Advanced' tab.
Now, alter the 'Path' variable so that it also contains the path to the Java executable. Example, if the path is currently set to 'C:\WINDOWS\SYSTEM32', then change your path to read 'C:\WINDOWS\SYSTEM32;c:\Program Files\java\jdk\bin'.
Set Classpath
Assuming you have stored your Java programs in c:\myprograms\ directory −
Right-click on 'My Computer' and select 'Properties'.
Click the 'Environment variables' button under the 'Advanced' tab.
Now, add the 'CLASSPATH' variable and set the path to the c:\myprograms\'.
- Related Articles
- How to configuring Java Environment on Linux?
- How to set JAVA_HOME environment variables on Windows OS in Java?\n
- How to set python environment variable PYTHONPATH on Windows?
- How to install JDK in Windows and set up the environment variables?
- How to Install Python on Windows?
- How to install Greenshot on Windows?
- How to Install WebStorm on Windows?
- How to install CamStudio on Windows?
- How to setup MongoDB Java environment?
- Creating Python Virtual Environment in Windows and Linux
- How to run Linux libraries on Docker on Windows?
- How to Install C++ Compiler on Windows?
- How to Balance Privacy on Windows 11?
- How to install Nitro Reader on Windows?
- How to install VideoPad Editor on Windows?

Advertisements