• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to find Java Server VM

 
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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..
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).
 
Awais Bajwa
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks i got what you said.. I guess i only have client JVM. As there is no server folder in the JDK.
 
reply
    Bookmark Topic Watch Topic
  • New Topic