Mac deployment options?

Hi there,

deploying a Java game on Windows has following options:
1.- Compiling it into native form
2.- Including the vm
3.- Relying on existing VM installation
(and okay Webstart, that I skip :wink: )

I’m a complete Mac agnostic, so I’m wondering what is the best way to deploy a Java game on a Mac? I heard that VM installations on Mac are more prevalent, so option 3 may viable, but I really don’t know. Or are Java2Mac OS native compiler available?

Many thanks

  1. webstart, because you cannot get a mac without webstart already being installed
  2. mac .app bundle (c.f. recent threads using search function, swpalmer is the expert on this, but he’s posted links to the step-by-step guidelines on how to make them more than once, so it’s easy enough to find out yourself)

If you want to be really fancy, distribute a .dmg containing a .app bundle.

PS It’s not even possible to “include a VM”. You can’t. They don’t exist. One is built-in to the OS, that’s all.

Distribute it as a .zip file like I do, which seems to work a treat.

Cas :slight_smile:

Do you mean as pure Java?

Yes. On the Mac you’ve got Java built-in pretty much universally. Webstart is crap in many ways for the sorts of things you want to do so don’t bother with it.

Cas :slight_smile:

Judging from the logs from JEmu2, it seems that deployment using JWS didn’t fail even once on MacOSX. So AFAIK, JWS works pretty well on Mac.

It works but everybody hates it when it comes to buying stuff and I think baegsi’s got his eye on a commercial venture.

Cas :slight_smile:

That’s right, selling via Webstart seems impossible to me, at least currently.

Another question: what Java version is prevalent on Mac? 1.3, 1.4, 1.5?

1.5, I suspect nearly everyone has it (because you have to have it if you want the bugfixes for your OS!) - but they have to pay for it, so I guess there may be many who are too stingy?

[quote=“blahblahblahh,post:10,topic:24472”]
Really? Why is that?

Apple’s revenue model includes selling some cheapo commodity apps, some gimmicks (Dashboard), and “all the bugfixes we haven’t given you so far” as an “OS upgrade” for $50 or so (maybe more if you can’t buy in bulk, can’t remember the individual prices) every year and a half / 2 years. I suppose if it’s what they use to fund the bugfixing then that’s cool.

That includes Java 5. Whether it was considered a commodity app, a gimmick, or a bugfix I leave to your imagination :wink: :stuck_out_tongue:

I’m not sure how accurate the information posted in this topic so far is. For one thing, Java 1.4 is built into Mac OS X 10.3 and Mac OS X 10.4, the last two releases of OS X. A very large percentage of Macs currently out there will be running one of these two versions, so you can count on 1.4 being available.

Apple doesn’t sell bug fixes and doesn’t sell Java 5. These are available freely from their website, or OS X users can have them automatically installed via the “Software Update” program included with the OS. Every couple of years they release a major update to OS X and sell it for $129. For example, 10.3 users would have to pay $129 to upgrade to 10.4. However 10.3.1-10.3.9 are all available freely.

Lastly, even though Apple said that Java 5 would be included with OS X 10.4, this turned out not to be the case. So most users of 10.4 “Tiger” will NOT have Java 5 on their machines yet, although it is available.

Right now, today, on apple’s site, it says Java 5 is part of OS X 10.4, and gives you a link to go buy Tiger, I quote: “Java 2 Standard Edition, version 5.0 is now available for download for Tiger users”. Either some people have been downloading this on the sly (people who dont even use java) or it’s also at one point autodownloaded as part of the updates system, because some of our machines have java 5 on I didnt put it there, and none of the users would have even known what it was let alone tried installing it.

Since it is impossible to get 10.4 without paying for it, and it is impossible to get java 5 without 10.4, please explain how that does NOT count as being sold java 5?

The major updates seem to also have major fixes, and those fixes dont seem to be available except as part of the major updates - is this not the case?

The point is Java 5 is not included with OS 10.4 (Tiger), it is a separate download. Whereas Java 1.4 IS INCLUDED with the OS.

Apple’s OS upgrades from 10.3 to 10.4 are huge. At least as significant as going from Win TN , to Win 2k, to Win XP, etc.

Of course bug fixes are included with the new OS versions - just like every other software update on the planet . Not sure what your point is with that Blah^3.

Many bugs and security issues are provided in dot-dot releases 10.4.1, 10.4.2, etc. The major releases 10.3 to 10.4 are ALL about features. Though some bugs are fixes with major changes that come with the major OS upgrade, and I see nothing wrong with that. If that is what makes sense to fix things right.

Java 5 can be hacked to run in limited ways on 10.3… but it isn’t worth trying.

It is quite a stretch to say that all “free” downloads that require a specific OS that is sold are therefore also sold. A silly statement really.

I use ant to create a .app bundle and create a .dmg disk image for Gallery Mage. Works a treat – BUT you must run ant on a mac to create the .dmg.

As said, JWS is also a good option.

My app is open source, so you can look at my build.xml yourself. You can get the “jarbundler” task from: http://www.loomcom.com/jarbundler/

Check out the bottom of the readme file for links to the proggies I used to create the icons.

Will.

I know this is rather old at this point but let me make this clear: Java 5 is not included on the OS X 10.4 install discs and it is NOT automatically downloaded by Software Update on any version of OS X. Thus, the ONLY way any OS X users are going to have Java 5 on their machines is if they go to the developer section of Apple’s website and download and install Java 5 themselves. The latest release that is automatically installed by Software Update is 1.4.2. I think the reason for this is because Java 5 for OS X is still considered “under development”.

I’ll also go the zip/app-bundle path. You can even create the icns file under windows. See this thread for details:

The result looks n feels pretty native (so I’ve heard).