- To check that you have the right version of Java installed, typethe text in boldface below.
If Java is installed, you should see something like:Now, check that the Java compiler is accessible.If it is installed, you should see something likeIf not, install the Developers Tools CD that came with your Mac anduse Software Update to make sure you have the latest version.- Now, create a directory to store your Java programs.In the window containing the Command Prompt, type the bold commandsbelow:
The mkdir command creates a new directory;the cd command changes the current working directory.After executing these commands, your working directoryis the newly created ~username/introcs/hello/. All of yourfiles for Assignment 0 will go here.Don't be scared by the Terminal - you will only need to use afew basic commands. Keep this window open since you will need it laterin the assignment.- Since you will be using the Terminal frequently, we recommend customizingWe recommend customizing the default settings....
- When you're done, save the program usingFile -> Save As, chose the directory C:introcshelloand type in the file name HelloWorld.java.The file name is case sensitive and must exactly match the name of the classin the Java program. Don't forget to include the .java extension in thefile name.
If javac complains in some way, you mistyped something, and you should check your program carefully. Ask for help if you can't see the mistake.- If everything went well, you should see the followingin the Command Prompt:
Silence is golden in computer science.