Java entry note 8

xiaoxiao2021-03-06  38

1. Java Tool1.1 Runtime InterpreterJava Runtime Interpreter syntax is as follows: Java Options ClassName Arguments If the class uses the package, the classname should contain the name of the package. The options for Options are described below: (1) -debug: Run the interpreter in the DEUG mode, which allows the JDB (Java debugger) to use it; (2) -Checksource: Check the source file is .java file when opening Interpreter And the date of the .class file, if .java is more .class is new, then the .class file will be recompiled; (3) -classpath: This parameter covers the environment variable ClassPath; (4) -mx x: Modify the assigned memory Maximum, such as -mx -10m; x> 1000byte (5) -ms x: Modify initialization memory; x> 1000byte (6) -noasyncgc: Turn off the garbage reclaim thread, that is, not automatically returning, you can use System. This method is manually recycled; (7) -noverify: Turns the verification function of the code; (8) -prof: Open the report function, the function tracks the execution of the program, and finally forms a report file, record all methods execution time It is conducive to finding the bottleneck of the program; (9) -ss x: Configure two other STACK for each thread in Java's operating environment, one for Java code, another for C / C code, here you can - SS is used to change the STACK size for C / C code, such as -ss 100K, minimum is 1000bytes, the default value is 128k; (10) -oss x: STACK used to modify the Java code, the default value is 400K (11 ) -T: Display program execution process (12) -verbose: Display related information each time; (13) -verbosegc: Display related information each time garbage collection; (14) -d: Allows to modify the hystem properties Value 1.2 CompilerJava Compile Syntax is as follows: Javac Options FileName The following is an optional options: (1) -classpath path: Tell the compiler to use overwriters to ClassPathp environment variables, such as: javac -classpath.; / Dev / animate / classes / dev / render / classes a.java is best not to have spaces in the path, otherwise you can go wrong.

转载请注明原文地址:https://www.9cbs.com/read-55644.html

New Post(0)