• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Java SDK for Mac users

 
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.
 
Marshal
Posts: 67280
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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
Marshal
Posts: 67280
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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.
 
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
 
Yup, yup, yup. Tiny ad:
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!