on 09-28-2009 3:13 PM
Hello,
I have worked for weeks trying to get the java part of install done properly. I have completed linux install with all parameters set properly. Only one thing holding preinstall test -- JAVA_HOME settings. I am loading SAP in distributed environment (main setup with database on another system) on 64 bit IBM Xseries system. I downloaded java 1.4.2_22 (from SUN) per a SAP note but this package does not have 64 bit JRE. Marcus stated in another listing installers need to load java 5.0 but I am wondering which package. Can someone tell me exactly which packages I need to install to complete and pathway of install. I have completely uninstalled all java packages and rpm s.
Thanks,
Jeff
Hi Jeff,
for Linux on x86_64 you need the IBM JDK 1.4.2, the Sun JDK is only for i386 and IA64 !
Check [https://service.sap.com/sap/support/notes/861215|https://service.sap.com/sap/support/notes/861215]
Thanks, Hannes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Hannes,
I was at IBM site before but did not read SAP note to get access code. Thanks when I went back saw access code to download java.
Now I have rpm for java version for X86_64 but when I install I still get java -version not found. I would suspect it is because this rpm is not red hat version. I have downloaded rpm and tgz. I ran the rpm and opened the tgz. I opened tgz and put IBMJava2-amd64-142 file in home folder. Subfolders include bin, demo, docs, include, jre, lib folders. Should I have PATH and JAVA_HOME pointing to one of these subfolders? Does this tell red hat my java version? Sorry I am more comfortable in debian linux.
Thanks,
Jeff
root@linux ~# java -version
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20070626 (Red Hat 4.1.2-14)
Yes - as you see this is GNU java, not Sun Java - and Gnu java is not supported for a SAPGUI installation.
root@linux opt# java -jar PlatinGUI-Linux-710r6.jar
you have to set JAVA_HOME to the root of where you installed it.
so
export JAVA_HOME=/opt/<path-you-installed>
then edit your path:
export PATH=$JAVA_HOME/bin:$PATH
now "java -version" should output the Sun Java version.
Markus
Above is from another thread.
When I installed java rpm installed to /opt/IBMJava2-amd64-142 folder.
From above thread I learned to:
export JAVA_HOME=/opt/IBMJava2-amd64-142
then edit path:
export PATH=$JAVA_HOME/bin:$PATH so I entered
export PATH=/opt/IMBJava2-amd64-142/bin:$PATH
is this correct? Am I suppose to replace last $PATH with something?
I still get error on precheck about JAVA_HOME: Could not check
Any help is greatly appreciated.
Jeff
Ok
What 'env' command shows for the user root regarding PATH and JAVA_HOME?
And, are you trying to set java_home and path only in terminal window ? I hope you are editing bash profile file too
http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/
Hello Anjali,
root 'env' is showing
JAVA_HOME=/opt/IBMJava2-amd64-142
PATH=/opt/IBMJava2-amd64-142/bin
my rpm install put the java folder in /opt/IBMJava2-amd64-142
when I run java -version
i get :
java version "1.4.2"
Java (TM) 2 Runtime Environment, Standard Edition (build 2.3)
IBM J9 VM (build 2.3, J2RE 1.4.2 IBM J9 2.3 Linux amd64-64 j9vmxa64142-20090310 (JIT enabled)
J9VM - 20090309_31291_LHdSMr
JIT - 2009210_1447ifx1_r8
GC - 200902_24
when I run which java i get :
/opt/IBMJava2-amd64-142/bin/java
When I run precheck still getting JAVA_HOME could not be check error every thing else comes back OK
Thank you hopefully something here will ring an alarm.
Jeff
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.