aspose file tools*
The moose likes Mac OS and the fly likes Java 2 SE SDK for OS X Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "Java 2 SE SDK for OS X" Watch "Java 2 SE SDK for OS X" New topic
Author

Java 2 SE SDK for OS X

Unnsse Khan
Ranch Hand

Joined: Nov 12, 2001
Posts: 511
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

Joined: Jan 10, 2002
Posts: 61437
    
  67

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!


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Unnsse Khan
Ranch Hand

Joined: Nov 12, 2001
Posts: 511
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

Joined: Jan 10, 2002
Posts: 61437
    
  67

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

Joined: Jan 10, 2002
Posts: 61437
    
  67

More info can be had at http://www.apple.com/macosx/features/java/.
David Hibbs
Ranch Hand

Joined: Dec 19, 2002
Posts: 374
...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.


"Write beautiful code; then profile that beautiful code and make little bits of it uglier but faster." --The JavaPerformanceTuning.com team, Newsletter 039.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

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

Joined: Dec 19, 2002
Posts: 374
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

Joined: May 10, 2000
Posts: 1913
    
    6
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java 2 SE SDK for OS X