Jump to content
  • Advertisement

Archived

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

biovenger

[java] Server VM in Manifest?

This topic is 5276 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey, I always package my applications in jar files, having the Main-Class attribute allow for double-click execution. However, I wish to start my application with the server VM... Now this is a tiny problem. It can of course be fixed with a simple batch file on windows, but then I''d have to do the same thing for every other platform I want the game to be playable on. So I was wondering if there was any way to make the manifest know it should run the Server VM when doubleclicked?

Share this post


Link to post
Share on other sites
Advertisement
I''m not sure, but a quick google doesn''t bring up anything. Either way though, I wouldn''t worry about it. Just make startup scripts for the top 2-3 platforms you think your game is going to be distributed on that have the -server tag. Most other platforms, the user might run from the command line anyway, so you put something in the README suggesting it.

In fact, people will probably appreciate the choice. Even though the server VM can run code closer to the performance of c++, it takes longer(ages on some systems) to start and it has an annoying tendency to take more ram than the client.

Share this post


Link to post
Share on other sites
True, well I was anyway planning on packing a batch file for running the code in client instead. So I guess I could make 2 shellscripts for the 3 most common platforms (server/client scripts that is) and then allow the others to choose by themselves from the commandline.

I guess if you have a platform that isn''t Linux or Windows, you might anyway be an "advanced" user and be very familiar with the prompt.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Just a note : Server VM aint included in the JRE for Windows (atleast not uptil 1.4.x maybe in 1.5?) or am I spreading disinformation?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
quote:
Original post by Anonymous Poster
Just a note : Server VM aint included in the JRE for Windows (atleast not uptil 1.4.x maybe in 1.5?) or am I spreading disinformation?


it isn''t in 1.5 either i think, but you can get it for windows iirc. it just isn''t included in the std win jre package

Share this post


Link to post
Share on other sites
It''s freely redistributable in place of the client VM. I believe there was some talk of the new Webstart having an option to use the server VM. In general though I advise that you don''t use the server VM for clientside applications as the warmup time is so severe that it makes your games look totally shit and unprofessional for the first minute or two - generally a crucial time for making that first impression.

Cas

Share this post


Link to post
Share on other sites
You could have a look at JSmooth. It creates an exe wrapper for your jar file, and I think you can pass commandline arguments to your program so you can pass the -server flag.

Share this post


Link to post
Share on other sites
Not that it matters in the case of the server VM because
a) Linux users are ... well, Linux users, and you''re only doing it for kudos on Linux, right?
b) MacOS doesn''t actually have a server VM
c) Nobody plays games on anything else

Cas

Share this post


Link to post
Share on other sites
so, how does one get a hold of the server VM for windows? I don't recall seeing any notification about it after downloading the sdk.

edit: scratch my last question
I just installed sdk1.4.2 and there is the bin directory, which has the compiler and everything, include a copy of the VM, and then there is the jre directory, which also has a copy of the vm, and directories labeld client and server, both with a jvm.dll file and an Xusage.txt file. Now, I don't recall, but I don't think 1.5.0 has this (maybe for the beta they decided to leave it out for the time being).

This brings up a question, why the two copies of the vm in the bin directory in the <sdk>/bin; directory and the <sdk>/jre/bin directory?



capn_midnight | Captain Midnight | deviantArt
ACM | SIGGRAPH | Generation5

[edited by - capn_midnight on June 3, 2004 4:08:09 PM]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!