Solved

How to upgrade to JRE ( Java Runtime Environment ) 5 Upd 8 in Solaris

Posted on 2009-04-06
4
1,176 Views
Last Modified: 2013-11-23
Hi,

I uploaded into my Solaris 10's server to /var/tmp/jre  the file
jre-1_5_0_18-solaris-sparc.sh

& run the above using root (ie ./jre..sh ) and this generates an
entire folder under /var/tmp/jre/jre1.5.0_18 ...

I think the steps given below are not complete :
http://java.sun.com/j2se/1.5.0/jre/install-solaris.html

Q1:
Do we need to move the files in /var/tmp/jre/jre1.5.0_18
to /usr/j2se  (there's currently a directory /usr/j2se/jre
there which holds an older version of jre)

Q2:
what about the binaries in /usr/bin/*  (ie java, javaws)

Q3:
what about /usr/java/bin

Q4:
any other things that I need to do for new java to take effect?
I've moved from /var/tmp/jre/jre...  to above directories & rebooted
the server but when I login as root & issue "java -version" it's still
showing the old Update 12 version

0
Comment
Question by:sunhux
  • 2
  • 2
4 Comments
 

Author Comment

by:sunhux
ID: 24076848

Just realized that the soft link is still pointing to Update 12 :

# cd /usr
# ls -ld jav*
lrwxrwxrwx   1 root     other         15 Apr 25  2008 java -> jdk/jdk1.5.0_12

What's the difference JDK and JRE.

I've just downloaded jdk-1_5_0_18-nb-6_5_1-solaris-sparc-ml.sh

So does this jdk package cover what's in the jre package I downloaded earlier?
Or I need to download/install both?
0
 
LVL 12

Expert Comment

by:basav_com
ID: 24079658
jdk includes 'jre' + extra tools. You don't need to install again.

http://www.java-tips.org/java-se-tips/java.lang/what-is-the-difference-between-jdk-and-jre.html
0
 
LVL 12

Accepted Solution

by:
basav_com earned 500 total points
ID: 24079676
Set your JAVA_HOME variable to point to the new location. Check your PATH varible, and update it accordingly.
i.e. PATH should have..   PATH=$JAVA_HOME/bin:$PATH so it will point to the new java.
0
 

Author Comment

by:sunhux
ID: 24226258

At the java download site, there's  JDK   &    JDK+Java Beans.

Can I say the latter is the superset of the former?  Or I should not
install JDK+Java Beans if what's currently existing in my system
is JDK only
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question