C H A P T E R  5

Setting Up the IDE

After you have installed the IDE, use the information in this chapter to start, set up, and register your software.

This chapter covers the following topics:


Starting the IDE

When you first start the IDE, you are prompted to do the following tasks:


procedure icon  To Start the IDE (Microsoft Windows Systems)

Use one of these methods:

To start the IDE and display messages in the Windows Console, type:

C:\> runide.exe

The Windows console displays error messages and other console messages generated by using the IDE.

Using runidew.exe just starts the IDE. This is the default launcher used by the desktop icon.

The runide.exe command options can be specified on the command line or in the s1studio-install-directory\bin\ide.cfg file. See Using the Startup Options.


procedure icon  To Start the IDE (Solaris or Linux Systems)

1. Change to the s1studio-install-directory/bin directory

The default installation directory is /opt/studio5_se.

% cd /opt/studio5_se/bin

2. Start the IDE.

% runide.sh

The runide.sh command options can be specified on the command line or in the s1studio-install-directory/bin/ide.cfg file. See Using the Startup Options.


Setting Up the IDE

The IDE has the following wizards that enable you to control aspects of the IDE environment:

  • Settings Import Wizard
  • Registration Wizard
  • Setup Wizard

Settings Import Wizard

The Settings Import wizard is displayed the first time that you start the IDE. The wizard enables you to import settings from prior versions of the IDE for use with Sun ONE Studio 5.

Registration Wizard

The Registration wizard is displayed the first time that you start the IDE. This wizard enables you to register with the Sun ONE Studio Developer Resources web site.

Registering your Sun ONE Studio 5 software through the web enables you to do the following:

  • Use the Update Center to download and install new modules and updates specific to your environment
  • Subscribe to the Early Access Program (http://forte.sun.com/eap) and receive new, nonpublic builds of the IDE, as well as preview releases of Sun ONE Studio 5 modules, patches, and bug fixes
  • Receive product announcements, if desired

If you decide to register with Sun ONE Studio Developer Resources at a later time, choose Help right arrow Registration Wizard from the main window of the IDE.

Setup Wizard

You can access the Setup wizard from the IDE Welcome screen or by choosing Tools right arrow Setup Wizard from the main IDE window.

In the Setup wizard you can do the following:

  • Set the IDE display window mode
  • Specify the web browser to use for internal and external web pages
  • Set the web proxy settings to use if you are behind a firewall
  • Use the Module Installation page to enable or disable IDE modules
  • Use the Update Center page to control the following:
    • Automatic update checking
    • Frequency of automatic updates
    • Update Center URL to check

procedure icon  To Enable or Disable IDE Modules

1. Choose Tools right arrowSetup Wizard from the main IDE window.

2. Click Next until the Module Installation page is displayed.

3. Expand the module category node for a list of modules.

Click on the module icon to see a short description of the module function.

4. Disable or enable a module by toggling the Enabled property value to true or false.

By default, all the modules installed with the IDE are enabled except the WebLogic Server Deployment Module (the WebLogic plugin). For information on enabling this module, see Chapter 9.


Using the Startup Options

The runide startup scripts can be run with additional command-line options.

You can use the options in the following ways:

  • Type the options on the command line
  • Put the options in the s1studio-install-directory/bin/ide.cfg file

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

TABLE 5-1 lists the runide command-line options.

TABLE 5-1 IDE Startup Options

Option

Description

-h
-help

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

Prepends the specified class path onto the IDE's class path.

-cp:a additional-classpath

Appends the specified class path to the IDE's class path.

-userdir s1studio-user-directory

Specifies the s1studio-user-directory (the location where your user settings are stored).

If this option is not specified, the default locaton is used. See the installation chapter for your platform for more information.

-J jvm-flags

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

  • -Xverify:none

-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 protection that the Java language gives you. Refer to the JVM software documentation for more information.

  • -Xms24m

-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.

  • -Xmx96m

maximum Java heap size

  • -Xss1024k

Thread stack size

(Microsoft Windows only) hotspot or -classic

Specifies the Java virtual machine (JVM) variant to be used.

The terms "Java virtual machine" and "JVM" mean a virtual machine for the Java platform.

"-ui" UI_class_name

Sets the specified UI class as the IDE's look and feel.

"-fontsize" size

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