Michael Echerer wrote: >>Shouldn't it have the "-server" in there if it is running in server mode? >> >>How can I tell that the JVM is actually running in server mode? > > > well, not sure if you can. I'd try java.lang.System.getProperties() or > something... > > Yupp... works... Just run my junitreport via ant which also dumps lots of system properties, too:
"java.vm.name" is what you are looking for, e.g. java.runtime.name Java(TM) 2 Runtime Environment, Standard Edition java.runtime.version 1.4.2_05-b04 java.specification.name Java Platform API Specification java.specification.vendor Sun Microsystems Inc. java.specification.version 1.4 java.util.prefs.PreferencesFactory java.util.prefs.WindowsPreferencesFactory java.vendor Sun Microsystems Inc. java.vendor.url http://java.sun.com/ java.vendor.url.bug http://java.sun.com/cgi-bin/bugreport.cgi java.version 1.4.2_05 java.vm.info mixed mode java.vm.name Java HotSpot(TM) Client VM java.vm.specification.name Java Virtual Machine Specification java.vm.specification.vendor Sun Microsystems Inc. java.vm.specification.version 1.0 java.vm.vendor Sun Microsystems Inc. java.vm.version 1.4.2_05-b04 Hence you should be able to distinguish the Client VM vs. Server VM with a simple JSP printing those properties. Cheers, Michael --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]