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

Java SDK on Mac OSX

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Hi.
I have one question about Java on Mac OSX.
After spending some hours at : http://developer.apple.com/java/
And got some questions :
1. Why Apple's version of Java SDK is smaller than Linux and Windows version ?
No demo dir for example ?
Is Apple implementation of Java SDK is identical to Sun implementaion (No difference at all in functionality) ?
2. There is dir called : /System/Library/Frameworks/JavaVM.framework/
This dir contatins 3 or 4 versions of Java SDK, How to specify Java SDK 5 as my default SDK ?
3. There is also a dir called : /Library/Java/Extensions/
In this dir, we put Java jars.
It seems to me that Apple has changed the structure of Java SDK, is it true ?
4. I read about Application bundle in Mac OSX.
It seems to me that it allow us to create executable jar files (like exe on Windows), right ?
Well, it seems great if true.
5. Any good online tutorials about how to install Java SDK on Mac OSX ?
I'm really sorry guys for my questions about Mac OS X, but I'm trying to collect as possible information as I can.
(Please note that I'm talking about SDK not JRE)
Thanks.
[ May 05, 2005: Message edited by: John Todd ]
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

2. There is dir called : /System/Library/Frameworks/JavaVM.framework/
This dir contatins 3 or 4 versions of Java SDK, How to specify Java SDK 5 as my default SDK?


This is the problem I had after installing Java 5.0. A resolution is posted here...
http://www.coderanch.com/t/111469/Mac/Java-Missing-Installation-Instructions

Note that in the 6th bullet point of these instructions, you could specify any of the version folders for the "CurrentJDK."


4. I read about Application bundle in Mac OSX. It seems to me that it allow us to create executable jar files (like exe on Windows), right?

I don't know much about this (yet), but the following is an interesting overview...
http://www.developer.com/java/other/article.php/1559241


5. Any good online tutorials about how to install Java SDK on Mac OSX?

Installation is easy. Just follow the steps here...
http://docs.info.apple.com/article.html?artnum=301073

The only trick seems to be in getting the "CurrentJDK" to alias the desired version, as described above in the answer to question 2.
[ May 05, 2005: Message edited by: marc weber ]

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Originally posted by John Todd:
4. I read about Application bundle in Mac OSX.
It seems to me that it allow us to create executable jar files (like exe on Windows), right ?
Well, it seems great if true.


You can make executable jar files on any platform - Mac OS X included.

Working with Manifest Files: The Basics

After making the executable jar you just double click on it (or as described in the tutorial 'java -jar <filename.jar>') and it should start the program.

Rene


Regards, Rene Larsen
Dropbox Invite
 
jQuery in Action, 2nd edition
 
subject: Java SDK on Mac OSX