Objectives: a. b. c. d. e. f. g. Install Java compiler programs. Install Crimson Editor. Learn how to create a working Java folder. Use Crimson Editor as an editor program for java codes. Set up the working Java folder as default folder of all java programs. Create a batch program pathJava.bat as shortcut to java compiler and interpreter. Run a java program Hello.java.
Page 1 of 8
Page 3 of 8
18. Click OK. 19. Click File | Exit. 20. Re-launch again Crimson Editor for the new settings to take effect. 21. Click Start | All Programs | Crimson Editor. 22. Click File | New. 23. Type in your Java Program.
Page 5 of 8
Page 6 of 8
47. You set already the path to the Java compiler and interpreter. 48. Compile your program. Type on the command prompt: java Hello.java 49. If no error occurs, your screen will look like this:
50. To check if .class file is created, display all files. Type: dir. Press Enter
Page 7 of 8
Page 8 of 8