Setting up Java environment on your PC to write Java codes
This article shows where you will get required software for java to run on your computer. And how you will set up environment to write and run your first Java programming code.
Installation :Before to write any java program need to install JDK (Java Development Kit), which is let to write java and compile it. Download JDK from the oracle site with following link: https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
After downloaded install this JDK to your PC.
After finishing installation you need to set up JDK compiler to you PC. Go to C:\Program Files\Java\jdk1.8.0_121\bin from windows explorer and copy that link.
After that go to My Computer or This PC and right click this and from pop up menu click the Properties tab.
After that click the Advance system settings link.
On Advanced section click the Environment Variables button.
On the Environment Variables tab of System variables section select Path variable.
Click the Edit button and Edit System Variable dialog box will be pop up.
On the ending part of Variable value put the ; (semicolon) and past C:\Program Files\Java\jdk1.8.0_121\bin and click OK for all boxes to be completed.
Now to check the java compiler is working or not got to the Windows comment prompt and write javac and press enter button on key board.
If information as following figure shows on comment prompt then java compile is ready to work with java codes.
Now to write java program needs a java text editor. Here going to work with netbeans editor. Go to the https://netbeans.org/downloads/ url on your browser and click the Download button for Java SE which is the java standard edition as follow.
After download has been completed install it.
Click the Finish button to complete the installation.
Comments
Post a Comment