cancel
Showing results for 
Search instead for 
Did you mean: 

JAVA version problem on Solaris

Former Member
0 Kudos

Hi all,

we r installing sap ECC sr3 with ABAPJAVAEP+EPCore DB oracle OS Solaris 5.10 on X86 64bit, but during installation it ask for JDK directory , in this Directory two version of Java are already instaalted j2sdk1.4.2_16 & jdk1.5.0_17. we have also installed an other version of Java in this Directory j2sdk1.4.2_24.

but this accepting only jdk1.5.0_17. when we continue with this version then a messege box appear

The JDK installed in directory /usr/jdk/instances/jdk1.5.0 has version 1.5.0_17. The SAP software is validated for versions less then 1.5.0_00 only.
You can use a JDK with version 1.5.0_00 or higher at your own risk. SAP recommends that you use a JDK with a minimum version 1.4.2_09 but lower than version 1.5.0_00.
You can select a different JDK by choosing Ok. If you want to go on with this JDK, choose Cancel.

plz guide how we will resolve that issue

Regards

Imran

Accepted Solutions (0)

Answers (1)

Answers (1)

markus_doehr2
Active Contributor
0 Kudos

> we r installing sap ECC sr3 with ABAPJAVAEP+EPCore DB oracle OS Solaris 5.10 on X86 64bit, but during installation it ask for JDK directory , in this Directory two version of Java are already instaalted j2sdk1.4.2_16 & jdk1.5.0_17. we have also installed an other version of Java in this Directory j2sdk1.4.2_24.

Usually you have one directory per JAVA_HOME.

You have to point to the 1.4.2_24 one, 1.5 is not supported.

And it's not recommended to install combined ABAP + Java instances any more.

Markus

Former Member
0 Kudos

Thanks Master,

we set JAVA envirmnt

#export JAVA_HOME=/usr/JDK/j2sdk1.4.2_24

and point to the 1.4.2_24 .

but it say that this is not the correct JDK

markus_doehr2
Active Contributor
0 Kudos

> but it say that this is not the correct JD

where does it "say" that? I just see an error message pointing to 1.5.0....

Markus

Former Member
0 Kudos

we have install another Java version 1.4.2_19 in usr/j2se/j2sdk1.4.2_19, when point to this directory then messege appear

Directory /usr/j2se/j2sdk1.4.2_19 is not a valid JDK directory: execution of "/usr/j2se/j2sdk1.4.2_19/bin/java -classpath /tmp/sapinst_exe.10593.1260353111/JAR/ins-j2ee.jar -d64 com.sap.ins.j2ee.GetSystemProperty" finished with return code 1.

Regrads

Imran

markus_doehr2
Active Contributor
0 Kudos

>

Directory /usr/j2se/j2sdk1.4.2_19 is not a valid JDK directory: execution of "/usr/j2se/j2sdk1.4.2_19/bin/java

can you execute

/usr/j2se/j2sdk1.4.2_19/java -version

Markus

Former Member
0 Kudos
root@sapprd # cd /usr/j2se/j2sdk1.4.2_19/

root@sapprd # java -version
java version "1.5.0_17"
Java(TM) Platform, Standard Edition for Business (build 1.5.0_17-b04)
Java HotSpot(TM) Server VM (build 1.5.0_17-b04, mixed mode)
markus_doehr2
Active Contributor
0 Kudos

>

root@sapprd # cd /usr/j2se/j2sdk1.4.2_19/
> 
> root@sapprd # java -version
> java version "1.5.0_17"
> Java(TM) Platform, Standard Edition for Business (build 1.5.0_17-b04)
> Java HotSpot(TM) Server VM (build 1.5.0_17-b04, mixed mode)

This is not the command I posted.

The current directory is not in the PATH so even if you do "cd /usr/j2se/j2sdk1.4.2_19" it will not pick the java in the directory but the Java it fins in your PATH. You can check using

which java

which java is execduted.

So please execute

/usr/j2se/j2sdk1.4.2_19/java -version

Markus

Former Member
0 Kudos
root@sapprd # which java
/usr/bin/java

r

oot@sapprd # /usr/j2se/j2sdk1.4.2_19/bin/java -version
java version "1.4.2_19"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_19-b04)
Java HotSpot(TM) Client VM (build 1.4.2_19-b04, mixed mode)

markus_doehr2
Active Contributor
0 Kudos

>

root@sapprd # which java
> /usr/bin/java

>

>

> r

oot@sapprd # /usr/j2se/j2sdk1.4.2_19/bin/java -version
> java version "1.4.2_19"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_19-b04)
> Java HotSpot(TM) Client VM (build 1.4.2_19-b04, mixed mode)

So here you see that it's picking up a different Java if you don't give the full PATH.

You installed apparently only the Java Runtime for 1.4.2_19 and not the full JDK, that's why sapinst is failing and stopping the installation.

I usually do the following:

- Download the correct JDK (Note 716604 - Access to Sun J2SE and recommended J2SE options) - see the link

- I use the "sh" file and copy it to /opt

- execute the script as "sh <file.sh>"

- create a soft link (e. g. ln -s /opt/j2fb1.4.2_24 /opt/java1.4)

- set the environment for root as "JAVA_HOME=/opt/java1.4 && export JAVA_HOME)

- then start sapinst from that shell and point to /opt/java1.4 if asked for the JDK

Markus

Markus

Former Member
0 Kudos

from this site http://www.sun.com/software/javaforbusiness/sap_download.jsp

we have download "Java for Business 1.4.2 Java Developer Kit" by selecting update 24 version b06

copy it in /opt

so now we install it in this way

  1. cd /opt

#./j2sdkfb-1_4_2_24-solaris-amd64.sh

......

....

yes

this will install it in /opt

is this enough?

or this is not complete version ?

Former Member
0 Kudos

if this is not the complete version then plz tell me the site from where we can download the complete java

markus_doehr2
Active Contributor
0 Kudos

This is the correct version.

Markus

Former Member
0 Kudos

we have install as u say but find below error. while this is successfuuly installed

root@sapprd # /opt/j2sdk1.4.2_24/bin/amd64/java -version

Error occurred during initialization of VM

java/lang/NoClassDefFoundError: java/lang/Object

Former Member
0 Kudos

sorry wrong version download

NOW installation has been started with JAVA 1.4.2_24

if find any problem than may contact with u

Thanks

Former Member
0 Kudos

thanks markus,

we have installed EP & EP core successfully with ABAP+JAVA.

now plz guide me , EP post installation steps and related SAP note ?

how sap user login to EP ?

i am totally new to EP

Best regards

Imran Khan

markus_doehr2
Active Contributor
0 Kudos

> we have installed EP & EP core successfully with ABAP+JAVA.

As I said before, a combination of ABAP + Java is not recommended. It adds a hard dependency between the support package levels, I hope you're aware of that.

> now plz guide me , EP post installation steps and related SAP note ?

What do you intend to do with the EP? What scenario you're going to implement?

Markus

Former Member
0 Kudos

Markus, i need your help. Please check this

Former Member
0 Kudos

Can you please tell me how did you resolve this error.

Error occurred during initialization of VM

java/lang/NoClassDefFoundError: java/lang/Object

I have got the same error after installing the java1.4.2_24 in solaris x64.

i would really appreciate if u could help me in this.

Thanks in advance

Prakash