Sets the Java VM options and forces the Java VM to load on startup. This option is recommended when using Java scripting logic. On Unix, the -cp options must be separated with colons.
mlsrv12 -c "connection-string" -sl java ( options ) ...
Sets -jrepath and other options to pass directly to the Java VM. The options are:
Option | Description | ||
---|---|---|---|
-classic | Use the classic Java VM. | ||
-client |
Use the client Java VM. | ||
-hotspot |
Use the hotspot Java VM. | ||
-server |
Use the server Java VM. This is the default. | ||
-cp location;... | Specify a set of directories or JAR files in which to search for classes. You can also use -classpath. | ||
-Dname=value |
Set a system property. For example:
|
||
-DMLStartClasses=classname, ... |
At server startup, load and instantiate user-defined start classes in the order listed. |
||
-jrepath path | Override the default JRE path, which is the directory %SQLANY12%\Sun\jre160_chip (where chip is a supported chip, such as x86). | ||
-verbose [ :class |:gc | :jni ] | Enable verbose output. | ||
-X vm-option | Set a VM-specific option as described in the file %SQLANY12%\Sun\jre160_chip\bin\client\Xusage.txt (where chip is a supported chip, such as x86). |
To display a list of Java options you can use, type:
java |
Options must be enclosed in brackets. These can be round brackets, as shown in the syntax above, or curly braces { }.
The -jrepath option is only available on Windows. On Unix, if you want to load a specific JRE, you should set the LD_LIBRARY_PATH (LIBPATH on IBM AIX, SHLIB_PATH on HP-UX) to include the directory containing the JRE. The directory must be listed before any of the SQL Anywhere installation directories.
For example, on Windows the following partial mlsrv12 command line sets the Java VM option that enables system asserts:
mlsrv12 -sl java (-cp ;\myclasses; -esa) ... |
On Windows, the following partial mlsrv12 command line defines the LDAP_SERVER system property:
mlsrv12 -sl java ( -cp ;\myclasses; -DLDAP_SERVER=mycorp-ldap ) ... |
The following partial mlsrv12 command line works on Unix:
mlsrv12 -sl java { -cp .:$CLASSPATH:/opt/myclasses:/opt/my.jar: } |
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |