Posts

Showing posts with the label Java Hello World

Set JAVA Environment Path and Run First Java Program using Command Line

Image
JAVA Environment Variable setting. To add JDK and JRE, you need to download both. 1. Download JDK from here. https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html Scroll down the page. Accept License Agreement. And download the exe file for your relevant operating system. You will have a JDK at describe folder of your system. 2. Download JRE from here. https://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html Accept the license and download the exe file for 192 updates of java. You will have a path of JRE in your system as described. 3. Set the JAVA Environment path for windows. We are adding “System Variables” here. Click on the “new” and add JDK and JRE path at System Variables as described below. 4. Make one JAVA folder on your system. Make one notepad++ document at that folder. Write the Program shown below. Save it with “...