Okay, so i am really new to Java. I am teaching myself and i cannot figure out how to set my PATH. I am using Head First Java and would really appreciate some help on where and how to insert the % javac on my Mac.
Thanks!
Andrew Monkhouse
author and jackaroo
Marshal Commander
You should not need to do anything manually - Macintosh OS/X comes with Java pre-installed.
Open up the Terminal application, and type java -version You should see a response that indicates what version of Java is running by default on your Mac.
But for future reference for setting OS environment variables. (this includes PATH)
Mac OS is based on Unix, so the way you do environment variables are different from windows. You can use your .profile file in your user's home directory, or you can create them directly on the command line for the length that the terminal window is open.