Setting Up Environment For JAVA Programming
Setting Up Environment For JAVA Programming
Programming
Pre-requisite
Your favorite text editor: Notepad, Notepad++, Sublime Text, and etc.
Integrated Development Environment (IDE) Software (Optional)
Java VM - https://www.java.com/en/download/windows_manual.jsp
These instructions are specialized to Windows 7, but are similar for Windows 10, Windows 8,
Windows XP and Windows Vista.
Install Java
Setting up Environment Variables
To create or modify environment variables on Windows 10:
1. On the Windows taskbar, right-click the Windows icon and select System.
2. In the Settings window, under Related Settings, click Advanced system settings.
3. Run the TestProgram.java using the below command and hit enter.
Java TestProgram.java
Troubleshooting
1. Java is installed but I encounter an error when running java -version in cmd.
Answer: Check if environment variable for java is available. Note that java directory will depend
on your installation.