Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

JavaWorld Daily Brew

Start with java



Start with java:

1. Install JDK and JRE
2. Create a folder anywhere in which you want to store java programs
3. open Command Prompt, change the directory path to the current directory folder that you recently created
4. use set path command, the path needs to set to show JDK/BIN path where all required java .exe files are stored
e.g. set path=%path%;C:\Program Files\Java\jdk1.6.0_11\bin
5. do not close the command prompt
6. Create .java file save it under the folder
7. on command prompt, type JAVAC filename.java
8. if no error command prompt will return
9. type JAVA fileame
10. Output will be shown

TIP: you can directly save the java programs in JDK BIN folder, if you do so you just need to CD till the bin directory on command prompt, no need to set path.