Operating System - HP-UX
1834253 Members
1848 Online
110066 Solutions
New Discussion

SWAssistant - Java not found

 
SOLVED
Go to solution
gstonian
Trusted Contributor

SWAssistant - Java not found

On a HP-UX 11.23 PA-Risc Server I get:

/opt/swa/bin/swa report -x ftp_proxy=ftp://xxxxxxxxxxxxxxxxx

======= 05/31/07 09:53:16 BST BEGIN Report on Issues and New Software (user=gallan) (jobid=phoenix)

* Gathering Inventory
* Using existing inventory for host "xx"
* Command output:
- Error: could not find libjava.sl
Error: could not find Java 2 Runtime Environment.

======= 05/31/07 09:53:17 BST END Report on Issues and New Software succeeded.

NOTE: More information may be found in the Software Assistant logfile "/var/opt/swa/swa.log".


phoenix# java -version
java version "1.4.2.13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2.13-070317-13:26)
Java HotSpot(TM) Server VM (build 1.4.2 1.4.2.10-060112-16:07-PA_RISC2.0 PA2.0 (aCC_AP), mixed mode)

# swlist | grep -i java
B9788AA 1.3.1.14.00 Java2 1.3 SDK for HP-UX
JAVAOOB 2.03.07 Java2 Out-of-box for HP-UX
Java15JDK 1.5.0.08.00 Java 1.5 JDK for HP-UX
T1456AA 1.4.2.13.00 Java2 1.4 SDK for HP-UX
T1456AAaddon 1.4.2.10.05 Java2 1.4 SDK -AA addon for HP-UX
T1458AA 1.4.2.13.00 Java2 1.4 Netscape Plugin for HP-UX


As you can see I have a number of versions of Java installed. I did remove and re-install Java / SWA to resolve another issue but SWA was installed after Java.

I don't have SHLIB_PATH set up etc or Java in my PATH but don't have this set up on other servers either where SWA works fine.

Any ideas ? Point will be awarded

CHeers
7 REPLIES 7
Torsten.
Acclaimed Contributor
Solution

Re: SWAssistant - Java not found

Hi,

I saw the same - you need exactly the version mentioned in the swa readme.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
gstonian
Trusted Contributor

Re: SWAssistant - Java not found

Was just installing that version as you replied. It fixed the problem though - thanks for your help !
Keith Buck
Respected Contributor

Re: SWAssistant - Java not found

Were there any errors when you did the install? The SWA coreq's should enforce that a correct version of Java is installed as long as you didn't turn off enforce_dependencies. I'd like to track this down so we can fix it if needed.

Thanks

-Keith
Bob E Campbell
Honored Contributor

Re: SWAssistant - Java not found

The corequisites are built so that newer versions (if packaged properly) will allow installation. The known issue is that an "OR'd" requisite the half that allows installation might not be the half found in your PATH. Based upon the data provided, your version 1.4 is new enough and should have been run. Can you post:

1. Version of SWA
2. Version of HP-UX
3. Hardware (output of model command)

or the system inventory (run /opt/swa/lbin/swainv)? I have not been able to reproduce with our latest bits.
Bob E Campbell
Honored Contributor

Re: SWAssistant - Java not found

OK, still cannot reproduce but have some interesting data. First, SWA attempts to use JRE15 first and then JRE14 (I was wrong about PATH).

Next, JRE15 has dropped support for PA-RISC 1.1 systems at some point, and yet JRE15 is installable on PA1.1 boxes.

I would be interested in the results of running /opt/java1.5/jre/bin/java on the original system configuration.
gstonian
Trusted Contributor

Re: SWAssistant - Java not found

Hi, in answer to your question about the install, there was no errors while instaling SWA with the above java config. Since the original problem I have now put on the new versions of java and it still all works (albeit it the old versions are still present and appear to be seperated under jdk14 & jre14).

phoenix# swlist | grep -i Java
B9788AA 1.3.1.14.00 Java2 1.3 SDK for HP-UX
JAVAOOB 2.03.07 Java2 Out-of-box for HP-UX
Java15JDK 1.5.0.08.00 Java 1.5 JDK for HP-UX
Java15JRE 1.5.0.02.02 Java 1.5 JRE for HP-UX
T1456AA 1.4.2.13.00 Java2 1.4 SDK for HP-UX
T1458AA 1.4.2.13.00 Java2 1.4 Netscape Plugin for HP-UX
Jdk14 1.4.2.10.05 Java2 1.4 SDK
Jre14 1.4.2.10.05 Java2 1.4 RTE
Bob E Campbell
Honored Contributor

Re: SWAssistant - Java not found

OK, the dependency is only on the runtime (JRE) and favors the 1.5 over the 1.4. The initial swlist did not include either JRE and the newest includes both.

If the requisite is bypassed, the SWA controller can run without the java libraries and create an inventory, but all analysis, downloads, and reporting requires the JRE.

I should have seen this earlier, but looked only at revisions and not JDK vs. JRE.