Operating System - HP-UX
1752290 Members
4999 Online
108786 Solutions
New Discussion юеВ

JAVA: Cannot execute HPjconfig

 
Ralph Grothe
Honored Contributor

JAVA: Cannot execute HPjconfig

Hi,

customer wanted HP's port of JDK 1.4.X installed on their box.
So I downloaded and installed the stuff,
and was daring enough to let the /opt/java symlink point to the new installation target of /opt/java1.4
Now developers (to whom I don't have contact, because they should be able to help me with this Java stuff) are experiencing problem
that they relate to inappropiate Kernel tunables.
To aid me with sorting out fitting tunables I downloaded HPjconfig from here
http://www.hp.com/products1/unix/java/java2/hpjconfig/index.html
I then untarred the archive to a staging directory and ran the following java command (as the download site's terse install instructions suggested)
Yet, I'm not able to execute the HPjconfig class, and this is what I get:


# /opt/java/bin/java -cp /opt/build/tmp/HPjconfig.jar:/opt/build/HPjconfig_data.jar HPjconfig
Model.Model = 9000/800/L1500-7x
JVM version = 1.4.2.06
OS = HP-UX
OS version = B.11.00
Model = 9000/800/L1500-7x
ProgressHistory: <ProgressHistory: <ProgramVersion = 2.1
DataVersion = 2.1.1
ProgressHistory: >>Completed: checkProgramAndDataVersions()
ProgressHistory: <ProgressHistory: >>Completed: construct & init of VariousGUIitems-1
ProgressHistory: <ProgressHistory: >>Completed: constructing InfoUpdatePanel
ProgressHistory: <ProgressHistory: >>Completed: constructing JavaApps
ProgressHistory: <ProgressHistory: >>Completed: constructing SuperUserPanel
ProgressHistory: <ProgressHistory: <

Usage: java -Xbootclasspath/p:HPjconfig.jar:HPjconfig_data.jar HPjconfig

I'm not into Java, and so I don't no the subtle differences between an ordinary Java Classpath (that the website suggested) and the Xbootclasspath the Java interpreter suggests above.
A simple substitution of -cp by -Xbootclasspath didn't work either.
I'm not into Java
(never really got infected by the Java hype)
so I'm a bit lost how to carry on.
I looked into the Java archive, and can see that there exists a HPjconfig.class file.
I can remember that cleanly written Java classes provide a documentation mechanismen called Javadoc (I think similar to Perldoc).
But I cannot recall how to invoke it in order to see the classe's interface documentation.

# /opt/java1.4/bin/jar -tf /opt/build/tmp/HPjconfig.jar|grep HPjconfig
HPjconfig$1.class
HPjconfig$2.class
HPjconfig$3.class
HPjconfig$4.class
HPjconfig$5.class
HPjconfig$6.class
HPjconfig.class


Madness, thy name is system administration
3 REPLIES 3
Victor BERRIDGE
Honored Contributor

Re: JAVA: Cannot execute HPjconfig

Hi Ralph,
Have you the latest required patches for java1.4?
I just tried on a rp5450 with multiple java version installed but none in any path and Im not into java either...
So first attempt:
I went where I downloaded HPjconfig and did the same command as you but giving the path to java1.4 - nothing else:
# /opt/java1.4/bin/java -Xbootclasspath/p:HPjconfig.jar:HPjconfig_data.jar HPjconfig
- It failed because I didnt set DISPLAY for it to open X appl HPconfig.
set DISPLAY and tried again this time it worked... I didnt fiddle with classpaths... just executed from where the product is


All the best
Victor
Victor BERRIDGE
Honored Contributor

Re: JAVA: Cannot execute HPjconfig

Forgot to say I executed as mentionned in the readme: as root


All the best
Victor
Ralph Grothe
Honored Contributor

Re: JAVA: Cannot execute HPjconfig

Victor,

as Java being notorious for GUI applications
(have you ever come accross a Java program that has a pure command line interface in good old Unix style?), exporting DISPLAY to my Xserver was the first thing I tried.
For a few tenth of a second I even could realize a window attempting to pop up.
But then it finished with the line I posted.
Apropos, /opt/java is a symlink that points to JDK1.4 install target dir, so it should have invoked the "right" interpreter.

/opt/java/bin/java -version
java version "1.4.2.06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2.06-041015-11:00)
Java HotSpot(TM) Server VM (build 1.4.2 1.4.2.06-041015-12:38-PA_RISC2.0 PA2.0 (


But your mentioning of the latest Java patch gizmo is well worth to be checked.
Madness, thy name is system administration