Java Series 1 environment variable configuration, java environment variable

Source: Internet
Author: User

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

 

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.