Java command-line options
The following table describes the Java command-line options (for Java SE and Jakarta EE).
| Java or Jakarta EE option | Description |
|---|---|
|
|
Specifies the application server to process JSP files. Equivalent property name: |
|
|
Specifies the application server’s home.
Equivalent property name: |
|
|
Specifies the version of the application server. Equivalent property name: |
|
|
Specifies the class path used to analyze Java source code. The format is the same as javac: a semicolon- or colon-separated list of directories. You can use OpenText SAST file specifiers as shown in the following example: -cp "build/classes:lib/*.jar" For information about file specifiers, see Specifying files and directories. Equivalent property name: |
|
|
Similar to the javac Equivalent property name: |
|
|
Specifies one or more directories that contain compiled Java sources. |
|
|
Indicates the Java™ Development Kit (JDK) version for which the Java code is written. For supported versions, see Supported languages. The default is version 11. Equivalent property name: |
-custom-jdk-dir
|
Specifies a directory that contains a JDK. Use this option to specify a version that is not included in the OpenText SAST installation ( Equivalent property name:
|
-show-unresolved-symbols
|
Displays any unresolved types, fields, and functions referenced in translated Java source files at the end of the translation. It lists only field and function references for which the receiver type is a resolved Java type. Displays each class, field, and function with the source information of the first translated occurrence in the code. This information is also written in the log file. Equivalent property name:
|
|
|
Specifies a semicolon- or colon-separated list of directories that contain source code that is not included in the scan but is used for name resolution. The source path is similar to class path, except it uses source files instead of class files for resolution. Only source files that are referenced by the target file list are translated. Equivalent property name: |
See also