Running in DOS window: java-server
Error:missing ' server ' JVM at ' C:\Program Files\java\jre7\bin\server\jvm.dll '.
Install or use the JRE or JDK, the contains these missing components.
On-line meaning:
Locate the JDK installation directory under Jre\bin with the client and server folders.
Copy the server folder to C:\Program files\java\jre7\bin\.
But after I am done, try again: Java-server, show:
Error occurred during initialization of VMS
Java/lang/noclassdeffounderror:java/lang/invoke/adaptermethodhandle
I executed it again: path C:\jdk\bin
And then try Java-server, and finally succeed. (probably because jdk1.6 and jdk1.7 are installed on my computer)
Try Java-server-version.
Java Version "1.7.0_25"
Java (TM) SE Runtime Environment (build 1.7.0_25-b17)
Java HotSpot (TM) Server VM (build 23.25-b01, Mixed mode)
Here are the differences between-client and-server:
Java-version//view JVM Default environment
Java-client-version//View the JVM's client environment, optimized for GUI, fast boot speed, and run slower than server
Java-server-version//View the server-side environment of the JVM, optimized for the production environment, fast running, slow startup speed
The JVM working in server mode can greatly improve performance, but the app's startup will be about 10% slower than client mode. When this parameter is not specified, the virtual machine initiates the detection of whether the host is a server, if it is, starts in server mode, or starts in client mode, j2se5.0 detects at least 2 CPUs and a minimum of 2GB of memory.
When the JVM is used to start the interactive application of the GUI interface, it is appropriate to use the client mode, which is recommended when the JVM is used to run the server daemon.
The JVM in the client mode default-XMS is 1m,-xmx is 64M;JVM in the server mode default-XMS is 128m,-xmx is 1024M. We can see what mode the JVM is working on by running: Java-version.
The server JVM is more optimized than the client JVM, but at the same time this optimization can cause problems that do not occur in the client JVM , so it is also possible to designate as the server JVM when developing and testing
The difference between Java-server and-client, and the reason for the wrong java-server