cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with starting JVM with IBM JDK 1.4.2 on Linux

MarcelRabe
Product and Topic Expert
Product and Topic Expert
0 Kudos

Dear all,

we are installing SAP Web AS 6.40 Java on SUSE Linux 9.2 on a AMD64 (x86_64) platform. The installation stops at the phase where the J2EE engine is started. In the /usr/sap/<SID>/<INSTANCE>/work directory the bootstraop logs indicate an error starting the JVM.

We are using the IBM JDK 1.4.2.

Before providing all the details, does anyone of you have experience with linux on x86_64

Cheers

Marcel Rabe

Accepted Solutions (0)

Answers (1)

Answers (1)

MarcelRabe
Product and Topic Expert
Product and Topic Expert
0 Kudos

Ok,

problem solved. In case somenody else runs into the same problem, here's what we did.

We set the following environment variables:

JAVA_LINK=IBMJava2-amd64-142

JAVA_BINDIR=/opt/IBMJava2-amd64-142/bin

JAVA_HOME=/opt/IBMJava2-amd64-142

JAVA_ROOT=/opt/IBMJava2-amd64-142

JRE_HOME=/opt/IBMJava2-amd64-142/jre

The following environment variable is CRUCIAL!

LD_LIBRARY_PATH=/opt/IBMJava2-amd64-142/jre/bin/j9vm:/opt/IBMJava2-amd64-142/jre/bin:/usr/sap/<SID>/SYS/exe/run:/oracle/<SID>/920_64/lib

so put the ../9jvm directory first. It didn't work because we had created a symblic link to libjvm.so in that folder (see ) but this actually caused the problem. So we did not do that in the end.

After this, everything worked fine.

Cheers

Marcel

MichaelTe
Contributor
0 Kudos

Hello Marcel,

good job.

Thank you very much for the solution.

I had similar problems in starting the EP7.0.

The installation went fine (funny isn't it?)

In the file /usr/sap/<SID>/DVEBMGS<SYSNO>/work/std_bootstrap.out

there was the message:

libjvm.so preloadLibrary: /opt/IBMJava2-amd64-142/jre/libj9vm22.so: cannot open shared object file: No such file or directory

libjvm.so failed to load: j9vm22

I set the environment variables you mentioned and deleted the link (which I created also) and it worked!!!

Regards,

Michael

chrisb1
Explorer
0 Kudos

Hi,

I also had this problem installing Solution Manager 4 (but not when I did EP7!) on a SLES 64 bit server. I couldn't get these environment variables to work so did this as well:

cd /opt/IBMJAVA2-amd64-142/jre/bin

mv ./j9vm/libjvm.so

rmdir j9vm

ln -s ./ ./j9vm

Regards

Chris

ChrisGela
Participant
0 Kudos

Hi,

While installing solution manager 4 (SLES x86_64) I also run into the problem "ibjvm.so preloadLibrary: /opt/IBMJava2-amd64-142/jre/bin/j9vm/libj9vm22.so: cannot open shared object file: No such file or directory" during the phase "Create Java users"

I've taken your advice (Chris B) and the installation carries on with out a problem. (and the java instance has started)

When I stop and start sap, I then cannot get the Java instance to start again!

The error in the "std_bootstrap.out" has the message; "libjvm.so preloadLibrary: /opt/IBMJava2-amd64-142/jre/libj9vm22.so: cannot open shared object file: No such file or directory

libjvm.so failed to load: j9vm22"

I have set all the environmental variables including the LD_LIBRARY_PATH and JAVA_HOME

I was wondering if you had the same problem, else if anyone else could please please help.

Thanks,

Chris G

Message was edited by: Chris Geladaris

MichaelTe
Contributor
0 Kudos

Hello Chris,

have you deleted the link for j9vm after the installation and before starting?

Delete the Link and set the environment exactly as mentioned. It should work.

Regards, Michael

ChrisGela
Participant
0 Kudos

Hi,

Yes, thanks, problem solved.

Thanks!!

chris

Former Member
0 Kudos

Please be aware, that moving/copying/linking the missing libraries is only a temporary solution in this case - if at all.

SAP note <a href="https://service.sap.com/sap/support/notes/1066142">#1066142 - Linux: libj9vm22.so: cannot open shared object file</a> describes the root cause.

Regards,

Alexander.