A P P E N D I X B |
Command-Line Options for Installing the IDE |
This appendix describes the command-line options for installing the IDE. There are four main reasons for using command-line options.
Three command-line options can be used with the GUI installer files. TABLE B-1 summarizes these option.
Replace the variable j2se-directory with the location of your J2SE installation.
If the default temporary space directory does not have enough space to run the installer, you can invoke the installer from the command line using the option -is:tempdir to specify another directory that has sufficient space.
If you need to do additional troubleshooting during a problem installation, you can run the installer with the -is:log log.txt option. This directs the installer to put error messages in the file log.txt.
Note - This option is highly recommended, as you will not be able to track installation errors without it. |
You can run the installer in a non-interactive mode, called silent mode, by specifying the -silent option on the command line. This option suppresses GUI displays to the terminal window.
Create a file containing the command-line options you want to use and place the file in the jstudio-download-directory. Then invoke the installer from the command line using the -silent option.
1. In a text editor, create the jstudio_M04q3-sol-sparc-en.sp file in the jstudio-download-directory where you saved the downloaded jstudio_M04q3-sol-sparc-en.bin installer launcher.
Include at least the three mandatory options and remember to put them in quotes. For example, your .sp file might look like this:
See TABLE B-2 for other install options.
Specifies the directory where you want the IDE installed. Mandatory for -silent mode. |
||
Sets the location of the valid J2SE version to use with the IDE. Mandatory for -silent mode. |
||
Sets the license serial number for the IDE. Mandatory for -silent mode. |
||
Specifies with the -DportNumber option, the registry setting for the proxy server name and port number. |
||
Specifies with -DproxyServer option, the registry setting for the proxy server name and the port number. These options can be set at any time using the IDE. Specifying these two options on the command line is optional. However, if specified, they are both required. These options can also be set at any time using the Setup wizard in the IDE . See Chapter 10. |
||
Prevents the J2ME Wireless Connection Wizard Module from being installed. The default is wcw=yes. |
2. Start the installer launcher from the command line.
Note - The -is.log option is not required, but is recommended for capturing error messages during installation. |
The installer uses the options specified in the s1s5me-sol-sparc-en.sp file to install the IDE and displays the following in the command prompt window:
InstallShield Wizard Initializing InstallShield Wizard... Searching for Java(tm) Virtual Machine... ......... Running InstallShield Wizard... |
3. When the installation completes, review the log file install.log found in the jstudio-install-directory. (This file is only created if the install is not successful and the debug option is not turned on.)
4. If you installed as a superuser, exit from superuser privileges.
The following example shows the steps for installing the IDE silently from the command line on a Microsoft Windows system.
1. In a text editor, create the jstudio_M04q3-win-en.sp file in the jstudio-download-directory where you saved the downloaded jstudio_M04q3-win-en.exe installer launcher.
Include these mandatory options and remember to put them in quotes. For example, your .sp file might look like this:
2. Start the installer launcher from the command line.
Note - The -is.log option is not required, but is recommended for capturing error messages during installation. |
The installer uses the options specified in the s1s5me-win-en.sp file to install the IDE and displays the following in the command prompt window:
InstallShield Wizard Initializing InstallShield Wizard... Searching for Java(tm) Virtual Machine... ......... Running InstallShield Wizard... |
Copyright © 2004, Sun Microsystems, Inc. All rights reserved.