[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.