• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java SDK for Mac users  RSS feed

 
Michael Ruebusch
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66307
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

This is limited to Java 1.6. If you need Java 7, you'll need to install that yourself. See: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

 
Michael Ruebusch
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66307
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To be honest, for me, it's always been starting IntelliJ, so I don't know whatever else may trigger it. Plenty of Mac users here -- perhaps someone else can chime in with their experiences.
 
Steve Kedzie
Greenhorn
Posts: 22
Mac Netbeans IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


Good luck!

Steve
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!