Operating System - Linux
1752802 Members
4886 Online
108789 Solutions
New Discussion юеВ

Java - Getting To First Base

 
SOLVED
Go to solution
Bill Brutzman
Frequent Advisor

Java - Getting To First Base

On our new Integrity box, it is not clear to me if any Java is installed.

At /opt/java1.4/bin/ almost all of the files there are 89784 in size.

Also, the command, #java -version, comes back with sh: java: not found.

I expect that I need to do a swinstall, I have had trouble finding installation instructions.

Help would be appreciated.

6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: Java - Getting To First Base

Bill,

That's simply because it's not in your PATH. First try doing "/opt/java1.4/bin/java -version". If that fails then maybe you do need to install. You can download from here:

http://www.hp.com/products1/unix/java/


Pete

Pete
TwoProc
Honored Contributor

Re: Java - Getting To First Base

To see if it's there:

swlist -l product | grep -i java

If it's there you'll see a listing.

If the files are "there" and all have the same size it's probably because in the bin directory all of the files are "hard-linked" to the main executable. Is there a number when you do an "ls -al" as the second argument on most of the lines? Are the numbers all the same (like 20 or 30 or so)? Then they are linked together.

If they are hardlinked, then they share an inode. Try:

ls -ali * (this means list the inode number)

Do most of them have the same first number? Once again, if so, they are hard linked to the same file.

As far as why "java -version" doesn't work, it may not be in your path. From the "bin" directory mentioned above, try "./java -version)" instead. If that clears it up then you need to append the java/bin directory to your path (don't do this for root).

If in doubt, it wouldn't hurt to uninstall it and reinstall it - once you've nailed down which version you need to install and have found the java depot file for swinstall.


We are the people our parents warned us about --Jimmy Buffett
Arunvijai_4
Honored Contributor

Re: Java - Getting To First Base

Hello,

You can download latest JDK from,
http://www.hp.com/products1/unix/java/?jumpid=go/java

After downloading, just do,

# swinstall -s /T145xx.depot T145XX

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Arunvijai_4
Honored Contributor
Solution

Re: Java - Getting To First Base

Hello,

Installation instructions for JDK5.0 is available at,

http://www.hp.com/products1/unix/java/java2/jdkjre5_0/infolibrary/jdk_rnotes_5.0.02.html

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
A. Clay Stephenson
Acclaimed Contributor

Re: Java - Getting To First Base

Java can't be on first base, who's on first.
If it ain't broke, I can fix that.
Bill Brutzman
Frequent Advisor

Re: Java - Getting To First Base

Thanks for the help!