How to install java (jdk-74) on solaris 10?


 
Thread Tools Search this Thread
Operating Systems Solaris How to install java (jdk-74) on solaris 10?
# 1  
Old 05-31-2012
How to install java (jdk-74) on solaris 10?

What kind of required java type for installed?
which address link, i need to download the package.
i have zcat this version jdk-7-solaris-sparc.tar.Z and then installed each the packages with pkgadd -d . , but my java version still java full version "1.5.0_24-b02".is it need doanything after installed each package??
any body know can explained, how to step by step installed the java.? many thx b4
# 2  
Old 06-16-2012
Are you going to upgrade your JRE?
Hope this will help you

Download
  1. Go to java site
  2. Click on Free Java Download button.
    The Solaris Manual Downloads page appears
  3. Download the SPARC 32 Bit/x86 package by clicking on the Download button.
    You can download the file to any of the directories on your system.
  4. After downloading, verify that the:
    For SPARC 32 bit
    • Name of the file is jre-7u<version>-solaris-sparc.sh
    For x86
    • Name of the file is jre-7u<version>-solaris-i586.sh

Install

Java comes in the form of a self-extracting binary file. Follow the instructions below to install Java:
  1. Change to the directory in which you have downloaded. Type:
    cd <directory path name>
    For example, if you have downloaded the file to /tmp directory, type:
    cd /tmp
  2. Make sure that execute permissions are set on the self-extracting binary:
    On SPARC 32 bit:
    chmod +x jre-7u<version>-solaris-sparc.sh
    where <version> is to be replaced by the version downloaded.
    Example: For jre-7u3, the command is
    chmod +x jre-7u3-solaris-sparc.sh
    On x86:
    chmod +x jre-7u<version>-solaris-i586.sh
    where <version> is to be replaced by the version downloaded.
    Example: For jre-7u3, the command is
    chmod +x jre-7u3-solaris-i586.sh
  3. Change directory to the location where you want to install. Type:
    cd <directory path name> For example, to install the software in the /usr/java directory, type:
    cd /usr/java
  4. Run the self-extracting binary. For example,
    On SPARC 32 bit:
    /tmp/jre-7u<version>-solaris-sparc.sh
    On x86:
    /tmp/jre-7u<version>-solaris-i586.sh
    The binary license agreement is displayed. Read through the agreement. Press the spacebar to display the next page. At the end, enter yes to proceed with the installation.
Image

  1. The files are installed in the jre1.7.0 sub-directory under the current directory.
    Note: Java Plug-in and Java Web Start are automatically installed with Java.

Enable and Configure

Once the installation is complete, ensure that you enable and configure Java to run applets in your browser.
Steps to Enable Java for the browser:
  1. Go to the plugins sub-directory under Mozilla installation directory. Type:
    cd <Firefox installation directory>/plugins
  2. In the current directory, create a symbolic link to Java libnpjp2.so file by typing:
    For SPARC 32 bit
    ln -s <Java installation directory>/lib/sparc/libnpjp2.so .
    For x86
    ln -s <Java installation directory>/lib/sparc/i386/libnpjp2.so .

    Note: Be sure to include the period (.) at the end.

    Example:
    If Mozilla is installed in this directory:
    /usr/lib/mozilla-1.4/

    and if Java is installed in this directory:
    /usr/java/jre7u3
    Then type at the terminal to go to the browser plug-in directory:
    cd /usr/lib/mozilla-1.4/plugins
    Enter the following command to create a symbolic link to Java Plug-in for the Mozilla browser.
    ln -s /usr/java/jre1.7.0_u<version>/lib/libnpjp2.so .
  3. Start Mozilla browser or restart if it is already running. Note that if you have other Mozilla components (ie: Messenger, Composer, etc) running, you will need to restart them as well.
  4. Go to Edit > Preferences.
  5. Under Advanced category > Select Enable Java.
    Java is now enabled for the browser.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Fedora

Fedora: Uninstall Java JDK 1.8 and install Oracle Java 1.7.15

Hi All, I have just downloaded fedora 27 iso and set it up in virtual box. I want to learn Hadoop so trying to install Apache hadoop. Before all those I have to install Oracle Java 1.7.15 (as mentioned in the Apache hadoop page). Can you please help me how to Uninstall currently installed... (6 Replies)
Discussion started by: TechGyaann
6 Replies

2. AIX

Any file to differentiate JAVA JRE and JAVA JDK

Folks, Any idea of where can I find a specific file to differentiate JRE and Java JDK installed on AIX platform :cool: (3 Replies)
Discussion started by: dellcisco
3 Replies

3. Shell Programming and Scripting

How to install jdk 6u17 in a prompt-less script

I came across this site while Googling for how to silently install JDK 6u17. I didn't find a solution, but I came up with this hack so I thought I'd post it here: The trick is to just temporarily disable the "more" application: ]# chmod u+x jdk-6u17-linux-x64-rpm.bin ]# # Prevent prompts...... (0 Replies)
Discussion started by: mhart
0 Replies

4. Shell Programming and Scripting

How to Upgrade Jdk After install in linux

hii... i want to upgrade my java version 1.4.2 to 1.6 in linux plateform after installing JDK. so what are the steps & commands in linux to upgrade it . Please Help me ... (1 Reply)
Discussion started by: rinkugarg
1 Replies

5. UNIX for Dummies Questions & Answers

Download & install JDK 1.6

Hi.. I want to download & install JDK 1.6 for linux so please help me where i can downlod it free Regards Rinku Garg (1 Reply)
Discussion started by: rinkugarg
1 Replies

6. Solaris

error during install jdk 5.0.11 packages

hi all i tried to install jdk on solaris 10 2008 and i used these packages in installation pkgadd -d SUNWj5cfg SUNWj5dmo SUNWj5dev SUNWj5rt SUNWj5jmp SUNWj5man all was good except one (SUNWj5rt) some of the output ERROR: attribute verification of... (3 Replies)
Discussion started by: maxim42
3 Replies

7. Shell Programming and Scripting

Script to install jdk

Hi, I need a shell script that would do silent installation of jdk on a linux machine. Can anyone help me with this? Thanx Sunny (6 Replies)
Discussion started by: eamani_sun
6 Replies

8. UNIX for Dummies Questions & Answers

Question about install JDK on SCO Unix

I try to run java file on SCO Unix, but my Unix doesn't setup with JDK environment. I go to sun.com to download JDK for SCO Unix, but there is only JDK for HP-UNIX, is it ok for SCO Unix? If it's ok, how can I install it to my Unix after I download? If it's not ok, How can I do to run java file in... (0 Replies)
Discussion started by: wendyz
0 Replies
Login or Register to Ask a Question