Howto disable "Server Class Machine Dedection"?

Hi there,

I just recently bought a second GB of RAM for my Notebook, and now I meet the requirements for a server-class-machine (2GB ram/ 2 cpu/ Linux).

Is there any way I can tell the jvm without always specifying that I would like to run the client-compiler always?

I know I could just use the -client switch but its a bit ugly to require all startup-scripts and specify the parameter each time I start an app by hand (and also in all eclipse configurations, etc.).

Thank you in advance, lg Clemens

[531 byte] By [linuxhippya] at [2007-11-27 9:19:04]
# 1

A bit of a hack, but you can update your JDK like this:

$ cd <jdk_installation_dir>

$ mv jre/lib/i386/server/libjvm.so jre/lib/i386/server/libjvm.so.org

$ ln jre/lib/i386/client/libjvm.so jre/lib/i386/server/libjvm.so

The java launcher will start (what it thinks is) the server JVM, but the client JVM will be run instead. This does have the downside that you can't run the server JVM at all, until you undo the above change.

Or create your own java wrapper script that strips out the '-server' option (if any) and adds the '-client' option.

jxca at 2007-7-12 22:10:55 > top of Java-index,Java HotSpot Virtual Machine,Specifications...