Two Laptop Bag
The moose likes Mac OS and the fly likes running on Mac OS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "running on Mac OS" Watch "running on Mac OS" New topic

running on Mac OS

Mario Bonassin

Joined: Apr 08, 2004
Posts: 18
How do I get my app to run on Mac OS 9? Is there something I need to code or can they just double click the .jar file?
Warren Dew
Ranch Hand

Joined: Mar 04, 2004
Posts: 1332
You'll need to ensure that they have the JVM installed. I think some versions of OS 9 did not ship with a JVM.
Also, you may need to make sure your App limits itself to an older version of Java. I'm pretty sure the OS 9 JVMs didn't make it to 1.3; I'm not sure if they even made it to 1.2.
Out of curiousity, why do you need to run on OS 9? I think most Mac folks have upgraded to some version of OS X by now.
Rob Ross

Joined: Jan 07, 2002
Posts: 2205
The current JVM on OS 9 is MRJ 2.5. That's the 1.1.8 version of the JDK. It's old. If you're using any libraries introduced in JDK 1.2 or later, your app won't work.
If you want to create a double-clickable application, you'll have to download the MRJ SDK, and use JBindery to create a OS-9 native "wrapper" that can be used as a stub to kick off execution of your main() method in your jar file.

SCJP 1.4
I agree. Here's the link:
subject: running on Mac OS
It's not a secret anymore!