Error: no 'server & #39; JVM at 'C: \ Program Files \ Java \ jre6 \ bin \ server \ jvm. dll & #39;. Solution: jre6jvm. dll

Source: Internet
Author: User

[Switch] Error: no 'server' JVM at 'C: \ Program Files \ Java \ jre6 \ bin \ server \ jvm. dll '. Solution: jre6jvm. dll

Problem:
Error prompted with java-jar XXX. jar-server-Xms900m-Xmx900m or java-server-version
Error: no 'server' JVM at 'C: \ ProgramFiles \ Java \ jre6 \ bin \ server \ jvm. dll '..

 

Solution
Copy 'server' folder from the JDK's JRE's bin folder (example: C: \ Program Files \ Java \ jdk1.6.0 \ jre \ bin \ server)
Paste the 'server' folder to JRE's bin folder (example: C: \ ProgramFiles \ Java \ jre1.6.0 \ bin)

Cause analysis:
The general cause is that the environment variables are not correctly configured, and Java under C: \ ProgramFiles \ java \ jre6 \ bin is used (registry search or other methods. In jre, There is only client, and there is no server entry ....
Http://www.cnblogs.com/newskysoft/archive/2010/04/23/1718720.html

General reasons:
Because of the Setting (default) in the computer environment variables, you call java.exe in C: \ Windows \ system32, and there is no jre in your own directory or parent directory, therefore, the jre in C: \ Program Files \ Java is found in the registry. However, because servervirtual machine is not found in the Registry, an error is required if you enter java-server first: path = C: \ jdk \ binning. You can call java. EXE in jdk. The jre under jdk is used accordingly. It contains java server virtualmachine. Of course, after you enter java-server-version, you will see the starting result.

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.