Interpreter-java.exe

Source: Internet
Author: User
Tags execution garbage collection

The Java interpreter can be used to interpret the execution of Java byte code directly, with the following specific command-line format:

C:\>java Options ClassName Arguments

ClassName must include all package information. Not only is the class name itself, but also the class name expected by the Java interpreter (not the filename of the Java byte code), all classes running in the interpreter environment must include the main member function required by the interpreter the first time it is called to pass the variable that the command takes.

public static void main(string args[])
   {
   ......
   }

All the options for the following Java interpreter.

Options feature

-cs-checksource This option allows the interpreter to recompile a class that has been updated by the Java source file--recompile a class that has changed.

-classpath path This option overrides the CLASSPATH environment variable, telling Java where to find the class library. If it is separated by a colon, it may contain multiple directories.

-MX x This option sets the maximum value for the memory allocation pool. The pool specified must be greater than 1,000 bytes. Additionally "K", "M" can be appended to the number specified as kilobytes or megabytes. The default value is 16MB.

-ms x This option sets the minimum value for the memory allocation pool. The indicated pool must be greater than 1,000 bytes. In addition, "K", "M" can be added to the number of kilobytes or megabytes specified. The default value is 1MB.

-NOASYNCGC This option turns off the asynchronous garbage collection feature, which is activated only when it is invoked in a program or when memory overflows.

-SS x This option sets the maximum value of the C-line stacks to x, which must be greater than 1KB, and is set in the same way as-ms.

-oss x This option sets the Java stack maximum to x.

-v,-verbose This option tells Java to output information to a standard output device whenever a class is invoked.

-verify This option tells Java to use checksums on all code.

-verifyremote This option tells Java to validate only the classes loaded by the class loader.

-noverify This option tells Java not to verify.

-VERBOSEGC This option tells Java to let the garbage collector display a message when it frees up memory.

-t This option is available in the JAVA-G interpreter and prints out the execution.

-debug This option allows the Java debugger to join with this Java interpreter session. Han when it runs, Java displays a password to start the debugging session.

-D propname=newval This option allows the user to change the property value at run time.

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.