A P P E N D I X D |
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 D-1 summarizes these option.
C:\> \s1studio-download-directory\s1s5se-win-en.exe -is:javahome C:\j2se-directory |
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.
C:\> \s1studio-download-directory\s1s5se-win-en.exe -is:tempdir C:\temporary-directory |
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.
C:\> \s1studio-download-directory\s1s5se-win-en.exe -is:log log.txt |
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. The procedure for installing the IDE silently (in a non-interactive mode) depends on whether you are installing from files on the CD-ROM or files downloaded from the web site.
Create a file containing the command-line options you want to use and place the file in the s1studio-download-directory. Then invoke the installer from the command line using the -silent option. The following example shows the steps for installing the IDE silently from the command line on a Solaris OS.
1. In a text editor, create the s1s5se-sol-sparc-en.sp file in the s1studio-download-directory where you saved the downloaded s1s5se-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:
installDir="/opt/studio5_se" jdkHome="/usr/j2se" serialNumber="trial" |
See TABLE D-2 for other install options.
2. Enable client access to the X server.
% xhost + your-machine-name |
Replace your-machine-name with the host name of your machine.
3. Set your display environment variable to display to your local machine.
% setenv DISPLAY your-machine-name:0.0 |
5. Start the installer launcher from the command line.
# cd s1studio-download-directory # s1s5se-sol-sparc-en.bin -silent |
The installer uses the options specified in the s1s5se-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... |
6. When the installation completes, review the log file install.log found in the s1studio-install-directory.
7. Disable client access and exit from superuser privileges.
# xhost - your-machine-name # exit |
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 s1s5se-win-en.sp file in the s1studio-download-directory where you saved the downloaded s1s5se-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:
installDir="C:\Sun\studio5_se" jdkHome="C:\j2sdk1.4.1_02" serialNumber="trial" |
See TABLE D-2 for other install options.
2. Start the installer launcher from the command line.
C:\> cd s1studio-download-directory C:\> s1s5se-win-en.exe -silent |
The installer uses the options specified in the s1s5se-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... |
If you have the product CD-ROM, you can use the installer jar files and type your options directly on the command line. To install using the jar file, type your installation options on the command line with the -silent option. Include the three mandatory options. This procedure can not be used with the .bin installer launcher downloaded from the web site.
When the options are typed directly on the command line, the installer uses the Java global variable specification option (-D) to pass information to the installer script.
For example, on a Microsoft Windows system, type the following in a command prompt window:
C:\> java -Did="C:\s1studio-install-directory" -Djh="C:\j2sdk1.4.1_02" -Dsn="trial" -jar D:\installers_se\s1s5se-win-en.jar -silent |
On a Solaris OS system, type the following:
# cd /cdrom/en_studiose_5/installers_se # java -Did="s1studio-install-directory" -Djh="/usr/j2se" -Dsn="trial" -jar s1s5se-sol-sparc-en.jar |
Remember to enclose the values in quotes. See TABLE D-3 for a list of otions.
The following table lists the installer file names for the three platforms.
Copyright © 2003, Sun Microsystems, Inc. All rights reserved.