-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsyntax_test_java.txt
72 lines (69 loc) · 3.92 KB
/
syntax_test_java.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# SYNTAX TEST "cmd-help.sublime-syntax"
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
# ^^ - constant.other.keyword.cmd-help
(to execute a jar file)
where options include:
-d32 use a 32-bit data model if available
-d64 use a 64-bit data model if available
-server to select the "server" VM
The default VM is server,
because you are running on a server-class machine.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A : separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
# ^^^^^^ entity.name.function.option.cmd-help keyword.other.argument.cmd-help
# ^ - entity.name.function.option.cmd-help keyword.other.argument.cmd-help
# ^^^^^^^ entity.name.function.option.cmd-help keyword.other.argument.cmd-help
set a system property
-verbose:[class|gc|jni]
# ^ - entity.name.function.option.cmd-help keyword.other.argument.cmd-help
# ^ - entity.name.function.option.cmd-help keyword.other.argument.cmd-help
# ^^^^^ entity.name.function.option.cmd-help keyword.other.argument.cmd-help
# ^ - entity.name.function.option.cmd-help keyword.other.argument.cmd-help
# ^^ entity.name.function.option.cmd-help keyword.other.argument.cmd-help
#nit: colon should be scoped, it's required
enable verbose output
-version print product version and exit
-version:<value>
# ^ - entity.name.function.option.cmd-help
# ^^^^^^^ entity.name.function.option.cmd-help keyword.other.argument.cmd-help
Warning: this feature is deprecated and will be removed
in a future release.
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -no-jre-restrict-search
Warning: this feature is deprecated and will be removed
in a future release.
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
# ^^^^^^^^^^^^^^^^^ entity.name.function.option.cmd-help keyword.other.argument.cmd-help
# ^ - entity.name.function.option.cmd-help keyword.other.argument.cmd-help
# ^^^^^^^^^^^^ entity.name.function.option.cmd-help keyword.other.argument.cmd-help
-enableassertions[:<packagename>...|:<classname>]
enable assertions with specified granularity
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions with specified granularity
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
# ^^^^^^^^^ entity.name.function.option.cmd-help keyword.other.argument.cmd-help
# ^^^^^^^^^ entity.name.function.option.cmd-help keyword.other.argument.cmd-help
#nit: I should scope ':' as option argument cause it's required
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
-splash:<imagepath>
show splash screen with specified image
See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more details.