This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Java in General and the fly likes how to find Java Server VM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "how to find Java Server VM" Watch "how to find Java Server VM" New topic
Author

how to find Java Server VM

Awais Bajwa
Ranch Hand

Joined: Jan 16, 2001
Posts: 191
Hi folks,
I have installed JDK 1.5, and I am not able to run the server JVM.

when I execute the command java -server ServerClass.class so i got the following error.

Error: no `server' JVM at `C:\Program Files\Java\jre1.5.0_06\bin\server\jvm.dll'

Any thoughts..
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14114
    
  16

You are using the JRE (not the JDK) to run your Java program. It looks like the server VM is not included in the JRE, only in the JDK.

Make sure you add C:\Program Files\Java\jdk1.5.0_06\bin to your PATH environment variable instead of C:\Program Files\Java\jre1.5.0_06\bin, so that you're running your program with the JDK instead of the JRE.

If you look in C:\Program Files\Java\jdk1.5.0_06\jre\bin, you'll see that there are two directories (client and server), while the C:\Program Files\Java\jre1.5.0_06\bin just has one directory (client).


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Awais Bajwa
Ranch Hand

Joined: Jan 16, 2001
Posts: 191
thanks i got what you said.. I guess i only have client JVM. As there is no server folder in the JDK.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to find Java Server VM