Operating System - HP-UX
1820885 Members
3716 Online
109628 Solutions
New Discussion юеВ

Installing JRE (jre.tar.Z)

 
Rupert Hawkes
Occasional Advisor

Installing JRE (jre.tar.Z)

Installation Information
To install the software onto your system, use the SD-UX swinstall command.
Hi,

I'm having trouble install the JRE 1.1.8 on HP-UX 10.20. I have FTP'd the depot and swinstall'd it and now have the following file

/opt/java/jre/jre.tar.Z

The install notes now say...

Run swinstall. It will invoke a user interface that will lead you through the installation.
The product will be installed under /opt/java/jre and require about 20 MB
of disk space. If you had a previous installation, please uninstall it
using swremove and move any personal files from your existing /opt/java/jre
directory before you begin the new installation.

This doesn't seem to handle the .Z file. HOW THE HELL DO I INSTALL THE JRE????????
And what environment variables are required to run it sucessfully?

Thanks for all your help.
14 REPLIES 14
Thomas Kollig
Trusted Contributor

Re: Installing JRE (jre.tar.Z)

Hi!

There is a depot-file for JRE: unix.hp.com/java/java1/jdk_jre/downloads/index.html

Bye, Thomas
Rupert Hawkes
Occasional Advisor

Re: Installing JRE (jre.tar.Z)

I don't think you understand my problem. I have already downloaded the depot

jre11804_os10.depot

and swinstall'd it. It created /opt/java/jre/jre.tar.Z and /opt/java/plugin

The JRE doesn't appear to be installed though as surely I'm supposed to have bin and lib directories of the /jre directory.

Any thoughts?
Alex Glennie
Honored Contributor

Re: Installing JRE (jre.tar.Z)

jre11804_os10.depot
jre11804_os11.depot

Both of these use swinstall to install the following files

/opt/java/jre/jre.release.notes
/opt/java/jre/jre.tar.Z

Although the HP-UX 10.20 version also contains the JPI plugin files (as
documented on the download page) ie

/opt/java/plugin/jpi.release.notes
/opt/java/plugin/package.i18n

To actually use the jre the customer needs to uncompress and then untar
/opt/java/jre/jre.tar.Z into a directory of his choice.

When the tar file is untar'ed the directory permissions are set to 777.

$ ll -d jre
drwxrwxrwx 4 callum adm 96 Dec 15 14:48 jre

$ ll -R jre
total 24
drwxrwxrwx 3 callum adm 1024 Dec 18 16:42 bin
-r--r--r-- 1 callum adm 10118 Oct 12 01:27 legal.notice
drwxrwxrwx 5 callum adm 1024 Dec 15 14:48 lib

jre/bin:
total 2
drwxrwxrwx 4 callum adm 96 Dec 15 14:48 PA_RISC
lrwxr-xr-x 1 callum adm 13 Dec 18 16:42 javakey -> .java_wrapper
-r-xr-xr-x 1 callum adm 806 Oct 12 01:28 jre
....

Your not the first to experience this confusion :

I suspect that it would cause too much confusion to completely remove the jre.tar.Z download at this stage with the Java 1.1 release. Although I notice that Java 1.2 releases no longer use the jre.tar.Z as a delivery
mechanism (see JAGad07798)
melvyn burnard
Honored Contributor

Re: Installing JRE (jre.tar.Z)

The .Z suffix indicates you have a compressed file.
First do:
uncompress jre.tar.Z

This results in the file becoming jre.tar (incompressed)
You can now do:
tar tvf jre.tar
to see what files are included.

My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Rupert Hawkes
Occasional Advisor

Re: Installing JRE (jre.tar.Z)

OK, I now have uncompressed the jre.tar.Z file and the JFC Swing 1.1.1 tar.Z file. However I have another question...

What environment variables do I need to set up now and where is the best place to put them?
Alex Glennie
Honored Contributor

Re: Installing JRE (jre.tar.Z)

found the following : ??

Configuring the Runtime Plug-In for HP-UX

Configuration can be done by running the ControlPanel script, which
launches Appletviewer, or loading ControlPanel.html in the Netscape browser.
Both files are found in the directory $HOME/.netscape/java.

The ControlPanel applet generates a file $HOME/.java/properties. Among other
settings, this file contains the path to the JRE to be used by the
Runtime Plug-in for HP-UX when the Netscape browser loads an applet from a
Runtime Plug-in for HP-UX enabled html page.

No environment variables are necessary for configuring the Runtime Plug-In for
HP-UX, Java(tm) Edition. However, it is possible to use the following
environment variables:

JAVA_PLUGIN_PATH
This indicates the path to the JRE. Defaults to $HOME/.netscape/java.

CLASSPATH
Gets appended with paths for the archived class files which comprise the
Runtime Plug-In for HP-UX, Java(tm) Edition, when Netscape loads javaplugin.sl.

SHLIB_PATH
Gets appended with paths to shared libraries which comprise the Runtime Plug-in
for HP-UX, Java(tm) Edition, when Netscape loads javaplugin.sl.

Enabling html Pages

The first time the Netscape browser loads an applet from a Runtime Plug-in for
HP-UX enabled html page, it will download and install the Runtime Plug-in for
HP-UX. Thereafter, the plug-in is used for other Runtime Plug-in for HP-UX
enabled html pages.

Sun Microsystems Inc. has provided some additional tools to assist users in
using Plug-in products. They have provided converters to automate the enabling
on html pages. They also provide an HTML specification for users who wish to
enable their html pages manually. Info on Sun Microsystems HTML converter and
specification is available at
http://java.sun.com/products/plugin/1.1.2/converter.html. It may be used to
modify HTML pages to specify use of the Runtime Plug-in for HP-UX, Java(tm)
Edition, version 1.1.2, instead of the default Netscape Navigator browser
version of the HP-UX Runtime Environment for Java.

Other Info

Other Sun documentation and FAQ are available at
http://java.sun.com/products/plugin/1.1.2/docs/index.html.

Info on Netscape 4.51 is available at
http://home.netscape.com/download/index.html.

For the latest information on Java Products for HP-UX, see
http://www.hp.com/go/java.

ALSO check this site : http://www.unix.hp.com/java/java1/jdk_jre/infolibrary/index.html
Rupert Hawkes
Occasional Advisor

Re: Installing JRE (jre.tar.Z)

Hmm. I have installed the JRE and Swing but cannot seem to find the "java" file or "classes.zip" file.

Are these part of the JDK? Do I need to install it also?
Alex Glennie
Honored Contributor

Re: Installing JRE (jre.tar.Z)

i'm not sure ... I'll ask Keith our Java guru to get back to you on this ... he's at lunch at the mo .... hang on in there ;)
Thomas Kollig
Trusted Contributor

Re: Installing JRE (jre.tar.Z)

Hi again!

/opt/java/lib/classes.zip and /opt/java/bin/java are in the JDK-Package.

Bye, Thomas
Keith Hughes_2
Advisor

Re: Installing JRE (jre.tar.Z)

Rupert,

Alex has asked me to help you in setting up java.

In my .profile file I have setup java as so


export JAVA_HOME=/opt/java
export SWING_HOME=/opt/java/swing-1.1.1fcs
export SWING_JARS=${SWING_HOME}/swing.jar:${SWING_HOME}/motif.jar:${SWING_HOME}/multi.jar:${SWING_HOME}/windows.jar:${SWING_HOME}/beaninfo.jar:${SWING_HOME}/swingall.jar:${SWING_HOME}/mac.jar


export SWING_CLASSES=${SWING_JARS}:${SWING_HOME}/examples/SwingSet/swingset.jar

export CLASSPATH=.:/opt/java/bin:/opt/java/lib/classes.zip:${SWING_CLASSES}

PATH=.:/opt/java/bin:/opt/java/swing-1.1.1fcs/src.zip:/opt/java/swing-1.1.1fcs/mac.jar:/opt/java/swing-1.1.1fcs/beaninfo.jar:/opt/java/swing-1.1.1fcs/swing.jar:/opt/java/swing-1.1.1fcs/motif.jar:/opt/java/swing-1.1.1fcs/multi.jar:/opt/java/swing-1.1.1fcs/swingall.jar:/opt/java/swing-1.1.1fcs/windows.jar


With these set please try command java -version

java version "HP-UX Java C.01.17.02 99/09/30"

I have Java C.1.17.02 installed on a work station.

If you are still having trouble please come back with your issue.

Happy coding

Keith.
Rupert Hawkes
Occasional Advisor

Re: Installing JRE (jre.tar.Z)

Out of interest should I have installed the JRE to /opt/java or /opt/java/jre

ie should I have /opt/java/jre/bin /opt/java/jre/lib

or /opt/java/bin and /opt/java/lib
Alex Glennie
Honored Contributor

Re: Installing JRE (jre.tar.Z)

I suspect either will do provided your PATH & CLASSPATH variables are set correctly .... Keith anything to add ?
Thomas Kollig
Trusted Contributor

Re: Installing JRE (jre.tar.Z)

Hi again!

I have both paths:
/opt/java/??? and /opt/java/jre/???
There are some comments about it in jre.release.notes.
I don't know, where you have to install the files in jre.tar.Z.
I have them in both paths.

Thomas

Rupert Hawkes
Occasional Advisor

Re: Installing JRE (jre.tar.Z)

I now have JAVA installed and configured correctly thanks to all your help.

Long live the forums!