C H A P T E R  5

Using Startup Command-Line Options

You can start the IDE executable with additional command-line options.

You can use the options in the following ways:

The IDE reads the jstudio.conf file before parsing any command-line options. You can type options on multiple lines in the jstudio.conf file.

The following table lists the jstudio command-line options.


TABLE 5-1 IDE Startup Options

Option

Description

--help or -h

Prints a description of the available options and their usage.

--jdkhome jdk-home-dir

Specifies the location of a J2SE platform other than the default that was specified during installation.

--cp:p additional-classpath

Prefixes the specified classpath onto the IDE's classpath.

--cp:a additional-classpath

Appends the specified classpath to the IDE's classpath.

--userdir IDE-user-dir

Specifies the IDE-user-dir (the location where your user settings are stored).

If this option is not specified, the default location is used. See About the Java Studio Enterprise IDE User Directory.

-Jjvm-flag

Passes specified flags directly to the Javatrademark Virtual Machine (JVMtrademark) software.

-J-Xverify:none
Tells the JVM software not to verify the correctness of the bytecode, thereby providing for faster startup time. Setting this flag removes some of the protection that the Java language gives you. Refer to the JVM software documentation for more information.

-J-Xms24m
Sets the initial heap size of the JVM software to 24 MB. This flag prevents the JVM software from extending the heap size during startup, thereby providing a faster startup time.

-J-Xmx96m
Sets the maximum heap size of the JVM software to 96 MB.

-J-Xss1024k
Sets the thread stack size.

--laf UI_class_name

Sets the specified UI class as the look and feel class of the IDE.

The following are two examples of look and feel classes: com.sun.java.swing.plaf.motif.MotifLookAndFeel and javax.swing.plaf.metal.MetalLookAndFeel.

--fontsize size

Sets the font size, expressed in points, in the user interface of the IDE. The default value is 11.