Instructions for compiling & executing a Java Program using JDK in elements lab By Ankit Agarwal, cs 313e proctor 1.Save the Java Program as CLASSNAME.JAVA . The class name should be the same as that of the main class of your program and it should be saved in a new/existing folder under the type "All files". For example: if I have a program whose main class is Project1, I will save my program in "c:\new" as Project1.java 2. Goto Start - Accessories - MS-Dos Prompt 3. If 'c:\windows>' appears on the prompt window then type 'cd..' 4. If 'c:\>" appears on the prompt window then type 'cd ' 5. Type 'c:\>path c:/jdk1.3/bin' (Make sure you type this correctly) 6. Type c:\>javac (for example c:\javac Project1.java).If you specified the path correctly in step 5 then this will initiate the compilation of the java file. 7. If you encounter any errors in the program then rectify them and repeat step 6. 8. If there are no errors in the program then the dos prompt will appear again after some time . 9. Type c:\>java (no java extention this time for eg - c:\>java Project1). This will execute the program. 10. If you wanna specify command line arguments then type: c:\>java in step 9 Instructions for compiling & executing a Java Program using JDK in elements lab 1.Save the Java Program as CLASSNAME.JAVA . The class name should be the same as that of the main class of your program and it should be saved in a new/existing folder under the type "All files". For example: if I have a program whose main class is Project1, I will save my program in "c:\new" as Project1.java 2. Goto Start - Accessories - MS-Dos Prompt 3. If 'c:\windows>' appears on the prompt window then type 'cd..' 4. If 'c:\>" appears on the prompt window then type 'cd ' 5. Type 'c:\>path c:/jdk1.3/bin' (Make sure you type this correctly) 6. Type c:\>javac (for example c:\javac Project1.java).If you specified the path correctly in step 5 then this will initiate the compilation of the java file. 7. If you encounter any errors in the program then rectify them and repeat step 6. 8. If there are no errors in the program then the dos prompt will appear again after some time . 9. Type c:\>java (no java extention this time for eg - c:\>java Project1). This will execute the program. 10. If you wanna specify command line arguments then type: c:\>java in step 9 Instructions for compiling & executing a Java Program using JDK in elements lab 1.Save the Java Program as CLASSNAME.JAVA . The class name should be the same as that of the main class of your program and it should be saved in a new/existing folder under the type "All files". For example: if I have a program whose main class is Project1, I will save my program in "c:\new" as Project1.java 2. Goto Start - Accessories - MS-Dos Prompt 3. If 'c:\windows>' appears on the prompt window then type 'cd..' 4. If 'c:\>" appears on the prompt window then type 'cd ' 5. Type 'c:\>path c:/jdk1.3/bin' (Make sure you type this correctly) 6. Type c:\>javac (for example c:\javac Project1.java).If you specified the path correctly in step 5 then this will initiate the compilation of the java file. 7. If you encounter any errors in the program then rectify them and repeat step 6. 8. If there are no errors in the program then the dos prompt will appear again after some time . 9. Type c:\>java (no java extention this time for eg - c:\>java Project1). This will execute the program. 10. If you wanna specify command line arguments then type: c:\>java in step 9