Java Series 1 environment variable configuration, java environment variable
My computer → properties → advanced system settings → Environment Variables
1. Create a variable name: java_home variable value: C: \ Program Files \ Java \ jdk1.7.0 _ 72. This is the directory where your jdk is installed.
2. append the path variable (because the path variable usually exists) % java_home % \ bin. This is your java_home name.
3. Create a variable named classpath.
After the configuration is complete, start → run → cmd and enter java to output the following results, which indicates that the configuration is successful.
Usage: java [-options] class [args...]
(Execution class)
Or java [-options]-jar jarfile [args...]
(Execute the jar file)
The options include:
-D32 uses a 32-bit data model (if available)
-D64 uses a 64-bit data model (if available)
-Server: Select "server" VM
-Hotspot is a synonym for "server" VM [used
The default VM is server.
-Cp <directory and Class search path for zip/jar files>
-Classpath <directory and Class search path for zip/jar files
Directory separated by;, JAR File
And ZIP file list for searching class files
-D <name >=< value>
Set System Properties
-Verbose: [class | gc | jni]
Enable detailed output
-Version: output the product version and exit.
-Version: <value>
The specified version is required for running.
-Showversion: output the product version and continue
-Jre-restrict-search |-no-jre-restrict-se
Include/exclude users in version search
-? -Help: output the help message.
-X outputs help for non-standard options
-Ea [: <packagename>... |: <classname>]
-Enableassertions [: <packagename>... |: <clas
Enable assertions at the specified Granularity
-Da [: <packagename>... |: <classname>]
-Disableassertions [: <packagename>... |: <linoleic
Disable assertions with a specified Granularity
-Esa |-enablesystemassertions
Enable System assertions
-Dsa |-disablesystemassertions
Disable system assertions
-Agentlib: <libname> [= <option>]
Load the local proxy library <libname>, for example
For more information, see-agentlib: jdwp = help.
-Agentpath: <pathname> [= <option>]
Load the local proxy library by full path name
-Javaagent: <jarpath> [= <option>]
Loading Java programming language proxy. Please refer
-Splash: <imagepath>
Use the specified image to display the startup Screen