Archived

This topic is now archived and is closed to further replies.

csDraco_

[java] Most widely used JVM

Recommended Posts

Hi all! Does any one know of some statistics of what java virtual machines people use these days? .. I''m in the middle of implementation of my multiplayer java game (applet), and time has come for me to decide if I should stick to Java 1.1 and my custom gui, or go ahead and use Swing, since it''s avaliable from Java 1.2. At this point I''d prefer to use Swing and define my own look and feel, rather then keep on working on my own custom gui in AWT ... but .. I also wont my applet to be playable without any updates of the JRE ... this is pretty much my dilemma.

Share this post


Link to post
Share on other sites
I''ve read that MS stopped shipping JVM with XP alltogether (I don''t use windows much these days ... mostly Slackware @ home and Solaris @ Univ) .. perhaps some good will come out of that, since everyone who wonts java will get the latest version (1.4.1) from Sun

.. maby using Swing is not a bad idea then ... hmmm

Share this post


Link to post
Share on other sites
quote:
Original post by csDraco_
I''ve read that MS stopped shipping JVM with XP alltogether (I don''t use windows much these days ... mostly Slackware @ home and Solaris @ Univ) .. perhaps some good will come out of that, since everyone who wonts java will get the latest version (1.4.1) from Sun

.. maby using Swing is not a bad idea then ... hmmm


Like he said

How is this trail against MS going anyways?
We should get the 1.4.1 VM in the next Windows

Anyways, I try to target my works for 1.3 and 1.4
also staying GJC compatible (which prevents using AWT or Swing)

Share this post


Link to post
Share on other sites
I think I found a solution ... since my game isn''t done yet, no one will play it anyway, so I''ll use Swing, since I can create funcinal UI with it pretty fast, and have it out of my way. And I''ll be able to concentrate on my server and client programming. While, later on I''ll either convert to my custom gui, or define custom look and feel for Swing.

Theres no better decision, then a decision to put one off

And since MS has been orderd by court''s rulling to include a JVM in XP then, perhaps in a fev months (or years) we''ll all have a 1.4 or later JVM to play with ... or back to 1.1, or another trial ... only time will tell.

Share this post


Link to post
Share on other sites
Don''t let lawsuits do the work for you. Just concentrate on making your game, and then worry about distributing when the time comes. AFAIK, MS has appealed the decision and it is upheld by the appeals courts, so you probably won''t get Java bundled with Windows anytime soon. Unless I''m completely misreading the news articles.

Share this post


Link to post
Share on other sites
Your best best is to lobby Sun for a game-oriented JVM (read: very small, very lean, very fast, and with a few important tweaks to GC policy by default).

I''ve managed to get the 1.4 client JVM down to 2MB compressed and still run my game. That''s not a bad overhead! Excelsior JET adds about 1MB on the total size though, so still a way to go yet. I''d be happy with 1.5MB or so. Especially if it wound up on a few coverdisks and got a bit more ubiquitous.

Cas

Share this post


Link to post
Share on other sites
I ran my game using -verbose, piped the output to a text file, and then systematically deleted all the classes from rt.jar that weren''t in it!

Then I set about removing all the dlls as well, and so on. Eventually I compressed it with WinRAR. Bingo! Small VM. Sadly undistributable without a special license and therefore as useful as a chocolate kettle.

Cas

Share this post


Link to post
Share on other sites
I''d lobby them for free or at least discount hosting of 100% java games

Actually I can''t complain .. I found a US company that does 15GB/month @ $30 USD, for a game server ... is that a fair price BTW?

Share this post


Link to post
Share on other sites