I am starting a Java programming class and they recommend the Head First Java book. After buying the book and going through the instruction for installing the Java SDK, it reads, "if you have a Mac then you don't need to do anything, the Java SDK is already on your machine." The next few bullet points go on to discuss API documentation, setting the PATH, and so on. Are these steps only for Windows installation or do I need to worry about them if I am using a Mac? Can anyone help me with this, and please don't attach a link to the Oracle page and tell me to follow the instructions, because the Oracle page is cluttered with so much information it just frustrates me. Some actual instructions for Mac users would be helpful. Thank you in advance.
What release of OS X? For earlier versions, you should be all set out of the box. For recent versions (Lion and Mavericks, I believe), the first time that you try to use Java, you will be promoted regarding whether you want to enable it or not. Obviously, answer yes.
When you say "use Java" what do you mean? How do you use Java? It's not an application that you open like Safari or Quicktime player. Do you mean the first time I try to compile a program like "hello world" using Terminal or TextEdit? Thanks for the help.
You can run a quick test to see if Java is up and running. Type "java -version" in a command terminal. It should return with the version of JRE installed on your machine. You can change the command to "javac -version" to get the JDK version. Do not use the quotes. If it does not return anything or gives you an error, use this: "/usr/bin/java -version" (and javac -version) If that fails, the you will need to download and install the JDK. Also, you may need to set your CLASSPATH using the command: export CLASSPATH=.:/Path/to/your/javaPrograms
Yup, yup, yup. Tiny ad:
create, convert, edit or print DOC and DOCX in Java