现在的位置: 首页 > 综合 > 正文

To install the Linux (self-extracting) file

2013年12月07日 ⁄ 综合 ⁄ 共 4042字 ⁄ 字号 评论关闭

To install the Linux(self-extracting) file

Follow these instructions:

1.     Change the permission of the file youdownloaded to be executable. Type:
chmoda+x jre-6u<version>-linux-i586.bin
<version> refers to Java update version you just downloaded. 
For Example: To install jre-6u30, above command will become 
chmoda+x jre-6u30-linux-i586.bin

2.       Verify that you have permission toexecute the file. Type:
ls -l

3.     Change to the directory in which youwant to install. Type:
cd<directory path name>
For example, to install the software in the /usr/java/ directory, Type:
cd/usr/java/

Note about root access: To install Java in a system-widelocation such as /usr/local, you must login as the root user to gain thenecessary permissions. If you do not have root access, install the Java in yourhome directory or a
subdirectory for which you have write permissions.

4.       Run the self-extracting binary Type:
./jre-6u<version>-linux-i586.bin

The license agreement is displayed. Review the agreement. Press the spacebar todisplay the next page. At the end, enter yes to proceed withthe installation.

5.       Java is installed into its owndirectory. In this example, it is installed in the/usr/java/jre1.6.0_<version> directory. When theinstallation has completed, you will see the word Done.

6.     Verify that the jre1.6.0_<version> sub-directory islisted under the current directory. Type:
ls

The installation is now complete. Skip to the Enable and Configure section.


To install the Linux RPM file

Follow these instructions:

1.     Become the root user by running the sucommand and entering the super-user password.
At the terminal: Type:
su
Enter the root password.

2.       Change to the directory in which youwant to install. Type:
cd<directory>
For example, to install the software in the /usr/java/ directory, Type:
cd/usr/java

Note about root access: To install Java in a system-widelocation such as/usr/local, you must login as the root user to gain thenecessary permissions. If you do not have root access, install Java in yourhome directory
or a subdirectory for which you have write permissions.

3.       Change the permission of the file youdownloaded to be executable. Type:
chmoda+x jre-6u<version>-linux-i586-rpm.bin
<version> refers to Java update version you just downloaded. 
For Example: To install jre-6u30, above command will become 
chmoda+x jre-6u30-linux-i586-rpm.bin

4.       Start the installation process. Type:
./jre-6u<version>-linux-i586-rpm.bin

The license agreement is displayed. Review the agreement. Press the spacebar todisplay the next page. At the end, enter yes to proceed withthe installation.

5.       The installation file creates and runsthe file jre-6<version>-linux-i586.rpm in the currentdirectory.

6.       Verify that the jre1.6.0_<version> sub-directory islisted under the current directory. Type:
ls

The installation is now complete. Go to the Enable and Configure section.


Enable and Configure

Firefox or Mozilla

To configure the Java Plugin follow these steps:

1.     Exit Firefox browser if it is alreadyrunning.

2.       Uninstall any previous installations ofJava Plugin.
Only one Java Plugin can be used at a time. When you want to use a different plugin,or version of a plugin, remove the symbolic links to any other versions andcreate a fresh symbolic link to the new one.

3.       Create a symbolic link to the libnpjp2.so file in the browserplugins directory

·        Go to the plugins sub-directory underthe Firefox installation directory
cd<Firefox installation directory>/plugins

·        Create the symbolic link 
ln -s<Java installation directory>/lib/i386/libnpjp2.so

4. 
Note: If you are upgrading your Java version then before creating newsymbolic link you should remove old symbolic link to enable latest downloadedJava.

To remove old symbolic link:
type cd<Firefox installation directory>/plugins
rmlibjavaplugin_oji.so

 


Example

·        If Firefox is installed at thisdirectory:
/usr/lib/<Firefoxinstallation directory>

·        And if the Java is installed at thisdirectory:
/usr/java/<Javainstallation directory>

·        Then type in the terminal window to goto the browser plug-in directory:
/usr/lib/<Firefoxinstallation directory>/plugin

·        Enter the following command to create asymbolic link to the Java Plug-in for the Mozilla browser.
ln -s/usr/java/<Java installation directory>/lib/i386/libnpjp2.so

 


5.       Start the Firefox browser, or restart itif it is already up. 

In Firefox, type about:plugins in the Location bar to confirmthat the Java Plugin is loaded. You can also click the Tools menu to confirmthat Java Console is there.

 

抱歉!评论已关闭.