Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

running on Mac OS

 
Mario Bonassin
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
Thanks
 
Warren Dew
blacksmith
Ranch Hand
Posts: 1332
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic