• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java 2 SE SDK for OS X

 
Unnsse Khan
Ranch Hand
Posts: 511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just bought my first G4 PowerBook, today....

Where can I download the Java 2 SE 1.4.2_02 SDK for the MacOS? Sun's site just has downloads for Windoze, Linux, and Solaris....

Also, what is the best Winzip-like utility for the Mac and what is its URL?

Thanks again,

[Bear edit: fixed OS name in title]
[ September 27, 2004: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65123
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sun does not provide a Mac version of its JVM. Download and install the OS X developer tools from the Apple site to get the Apple JDK (the JRE comes pre-installed I believe).

Congrats on your new machine!
 
Unnsse Khan
Ranch Hand
Posts: 511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear,

Thanks! OSX does rock!

What is the name of the package I need to install the JDK? Where should the JDK be placed?

in /user/local/java ? or /usr/java?

Also, where do I set the CLASSPATH and PATH (for javac, jar, etc.)

Many, many thanks!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65123
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you install the Developer Tools, the files will all get placed in the appropriate locations (/Library/Java/Home if I recall correctly).

You can set up any environment variables in .bash_profile just like any other UNIX. (Assuming you didn't change your shell).
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65123
91
IntelliJ IDE Java jQuery Mac Mac OS X
 
David Hibbs
Ranch Hand
Posts: 374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...you might also want to check out the great O'Reilley book "OS X for the Java Geek"-- it's got a funny name, but it really is a great source of information on how Java lives on OS X. I've just scratched the surface of the book and am already quite happy with it.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65123
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That book is on my Amazon wishlist but I don't have the scratch for it at the moment. As you get deeper into the book it'd be great if you could post a review.
 
David Hibbs
Ranch Hand
Posts: 374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bear Bibeault:
That book is on my Amazon wishlist but I don't have the scratch for it at the moment. As you get deeper into the book it'd be great if you could post a review.


Sure, I'll see if I can find the time for it.
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's certainly a great book.

Bear is right though, you don't need to explicitly set paths and stuff because it's all done for you. You just need to set your JAVA_HOME variable to /Library/Java/Home for any tools that use it.

BTW, have you tried just typing javac at the command prompt? I don't remember installing the JDK but then again I did install the developer tools package.
[ October 07, 2004: Message edited by: Simon Brown ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic