- To check that you are running the right version of Java, typethe commands in boldface below. You should see something similar to the information printed below. The importantpart is that it says 1.6 or 1.5 (and not 1.4).
Then type- Since you will be using the Terminal frequently, you may want tocustomize the default window settings (e.g., Monaco 13pt font with antialiasing).
- Assuming the file, say HelloWorld.java is in the currentworking directory, type the javac command below to compile it.
If everything went well, you should see no error messages.
Input and Output |
Developer(s) | Apple Inc. |
---|---|
Stable release | |
Operating system | classic Mac OS |
Type | Java Virtual Machine |
License | Apple SLA |
Website | docs.info.apple.com |