1855256 Members
6078 Online
104109 Solutions
New Discussion

J2EE for HP-UX 11i

 
SOLVED
Go to solution
SALLOUM Pascal
New Member

J2EE for HP-UX 11i

I want to install J2EE on HP-UX 11i but I did not find any specific release for HP-UX on Sun site. At http://java.sun.com/j2ee/sdk_1.3/ I could find the following file :

j2sdkee-1_3_1-solsparc.sh

but it fails :

"./j2sdkee-1_3_1-solsparc.sh: ./install.sfx.27287: Execute permission denied.
"

Could any one advice ?

Thanks
4 REPLIES 4
Pete Randall
Outstanding Contributor

Re: J2EE for HP-UX 11i

J2SE is available from HP:

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

Does that help?


Pete

Pete
Stuart Abramson
Trusted Contributor
Solution

Re: J2EE for HP-UX 11i

If you mean "java", this is what we run:

Notes on Java Versions.

1. There are two Java specifications:

a. Java 1
b. Java 2

2. Further, there are "sub"-specifications:

a. Java 1

o Java 1.1.X

b. Java 2

o Java 1.2.X
o Java 1.3.X
o Java 1.4.X

where, Java 1.2, 1.3 amd 1.4 are Java 2 versions, and the Xs are
levels of HP bug-fixes.

3. Within the Java 2 specifications, Java 1.3 includes all Java 1.2
features, etc.

4. Further, there are two "classes" of products:

SDK System Development Toolkit
RTE Runtime Environmnet

Where,
a. SDK includes:

o compiler
o developers "toolkit"
o debugger
o run-time library

b. RTE includes:
o run-time library only

5. The SDK includes the RTE.

You need the SDK to develop and run.
You only need the RTE if you only going to run pre-compiled object
binaries.

6. You can tell what product you have, by doing a swlist:

sabramsd@acadv07:/opt$ swlist | grep -i java

B5456CA C.01.18.01 HP-UX Development Kit for Java*
B5458DA C.01.18.04 HP-UX Runtime Environment for Java*
B8110AA 1.2.2.08.00 Java 2 SDK for HP-UX (700/800), PA1.1 + PA2.0 Add On
B9788AA 1.3.0.01 Java 2 SDK 1.3 for HP-UX (700/800), PA1.1 + PA2.0 Add On
B9789AA 1.3.0.01 Java 2 RTE 1.3 for HP-UX (700/800), PA1.1 + PA2.0 Add On

7. You can also look in /opt:

$ cd /opt
$ ll -d java*

dr-xr-xr-x 9 bin bin 1024 Jul 15 2000 java V. 1.1
drwxrwxrwx 8 bin bin 1024 Oct 3 13:50 java1.2 V. 1.2
drwxrwxrwx 7 bin bin 1024 Oct 22 17:11 java1.3 V. 1.3

8. So what we should do is install only the latest:

B9788AA 1.3.0.01 Java 2 SDK 1.3 for HP-UX (700/800), PA1.1 + PA2.0 Add On

swinstall -s bkmstr01:/swdepot/11.0/products B9788AA

9. You can download the latest JDK / SDK from the hp java website:

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

10. To actually run java you must set your path:

export PATH=$PATH:/opt/java1.3/bin/

# java -version

java version "1.3.1.10"
Java(TM) 2 Runtime Environment, Standard Edition (build
1.3.1.10-030630-10:50)
Java HotSpot(TM) Server VM (build 1.3.1 1.3.1.10-
_30_jun_2003_11_52 PA2.0, mixed mode)

11. Here is what we run at WABTEC:

saroot@wcshps07:/usr/bcv/scripts# swlist | grep -i java
B8111AA 1.2.2.14.02 Java 2 RTE for HP-UX (700/800), PA1.1 + PA2.0 Add On
B9098AA 1.2.2.14.02 Java 2 Plugin for HP-UX (700/800)
B9788AA 1.3.1.10.07 Java2 1.3 SDK for HP-UX
B9789AA 1.3.1.09.05 Java2 1.3 RTE for HP-UX
T1455AA 1.3.1.09.05 Java2 1.3 Netscape Plugin for HP-UX

saroot@wcshps07:/usr/bcv/scripts# export PATH=$PATH:/opt/java1.3/bin

saroot@wcshps07:/usr/bcv/scripts# java -version

java version "1.3.1.10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1.10-030630-10:50)
Java HotSpot(TM) Server VM (build 1.3.1 1.3.1.10-_30_jun_2003_11_52 PA2.0, mixed mode)


12. Install it like this:

saroot@wcshps08:/home/saroot# swlist -s acshps05 -l depot

# Initializing...
# Target "acshps05" has the following depot(s):
/var/adm/swdepots/JetAdmin
/var/adm/swdepots/QPK1100.60.4
/var/adm/swdepots/A51258A_B.11.00.10
/var/adm/swdepots/EMCPower.HP.3.0.2
/var/adm/swdepots/EMCPower.HP.2.1.0_b108
/var/adm/swdepots/Performance
/var/adm/swdepots/SDK1.3

saroot@wcshps08:/home/saroot# swlist -s acshps05:/var/adm/swdepots/SDK1.3
SALLOUM Pascal
New Member

Re: J2EE for HP-UX 11i

I have been told that I just need a file called j2ee.jar and add its path to CLASSPATH.

Can you see such a file on your installation, in which path ?

I have also been told that I can use the same j2ee.jar file on various palteform, which means that on my case I can just take it from a Solaris unix box and copy it into HP-UX.



SALLOUM Pascal
New Member

Re: J2EE for HP-UX 11i

According to http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000080019881

"What is J2EE?

- J2EE is a Server-Side Component Architecture

- J2EE, the Java Platform, Enterprise Edition (J2EE) defines the standard
for developing multitier enterprise applications.

- The J2EE standard includes complete specifications and compliance tests
to ensure portability of applications across the wide range of existing
enterprise systems capable of supporting J2EE.


You can download the J2EE packages and specifications from
www.sun.com/j2ee. You can download J2ME and J2SE
from the www.hp.com/java website.

The J2EE Java packages can be downloaded from Sun are pure Java and are
portable. If they contain any platform specific components they are
required by Sun to include customization instructions.

Bottom line, J2EE is a specification used to write J2EE compliant
Java Enterprise Applications. The components and specifications of J2EE
can be downloaded from the Sun website. "

J2EE could only be found at sun site !