cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

NWDS cannot find Java Virtual Machine

Former Member
0 Likes
2,485

I just installed Developer Workspace (SAP NetWeaver 2004s SR2 (SP9)

) in my another laptop.

When I try to launch NWDS, I got the following message:

A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java Virtual Machine was found after searching the following locations:

3\bin\javaw.exe

But I have jdk 1.4.09 in my C;\ and set the environment variable:

In sytem variable, I set:

JAVAHOME = C:\j2sdk1.4.2_09

and Path: C:\j2sdk1.4.2_09\bin

The problem not solved with these config.

Thanks for advise.

KEnt

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Hi Keant

Richt click on Studio icon and go to Shortcuts and check whether the target is set to <b>"C:\Program Files\SAP\IDE\IDE70\eclipse\SapIde.exe" -vm "C:\j2sdk1.4.2_09\bin\javaw.exe"</b> or not. If that is correct then it works fine.

Regards,

Jhansi

Former Member
0 Likes

Jhansi,

Doing this actually solve our problem:

Richt click on Studio icon and go to Shortcuts and check whether the target is set to "C:\Program Files\SAP\IDE\IDE70\eclipse\SapIde.exe" -vm "C:\j2sdk1.4.2_09\bin\javaw.exe"

Thanks.

Kent

Answers (3)

Answers (3)

Former Member
0 Likes

Hai kent,

In NWDS>window>preferences>java>installedjres

click add

JreType-STANDARD VM

jrename -j2sdk1.x.x

jrelocation -c:\j2sdk1.x.x

check the check box below press ok restart ur studio

regards,

Naga Raju

Former Member
0 Likes

Hi Kent,

After installing the JDK set the sytem variable <b>JAVA_HOME to C:\j2sdk1.4.2_09.</b> As u have j2sdk1.4.2_09 there no problem with the version compatibility also.While installing the NWDS make sure that it is taking the java path that u have set already.

If u have already installed then try to check the path of jdk that NWDS has taken.

Regards,

Jhansi

0 Likes

Hi Kent,

i would suggest you re-install your JDK.

Maybe it is a typo, but the environment variable is JAVA_HOME and not JAVAHOME.

If you are sure your JDK is installed correct, you can also try to start the Developer Studio from the installation path with this command:

<b>Example</b>

SapIde.exe -vm c:j2sdk1.4.2_09binjavaw.exe

Regards,

Martin

Former Member
0 Likes

Hi, Martin.

I can launch NDWS in MS-DOS with the command you provide.

After launching the NWDS, I check the JDK properties:

(Go to: Preference -> Java -> Installed JRE)

Here is the property:

JRE Type: Standard VM

Name: j2sdk1.4.2_09

Location: c:\j2sdk1.4.2_09

Seems like it is correct.

So, where should I go to fix the problem?

Thanks

Kent

Former Member
0 Likes

Hi Kent,

Try this: open the IDE installation folder and open the file "vm.parameters" with a text editor. Add one entry "-Ddefault=c:\j2sdk1.4.2_09" and save the file. Now open your IDE.

Regards,

Satyajit.

Former Member
0 Likes

Hi,

add the following line as part of your short cut.

-vm "C:\jdk1.5.0_07\bin\javaw.exe"

Ex:"C:\Program Files\SAP\IDE\IDE71\eclipse\SapNetweaverDeveloperStudio.exe" -vm "C:\jdk1.5.0_07\bin\javaw.exe"

Inside SapNetweaverDeveloperStudio.ini check for the entry

-DJDK.1.5.0_HOME=C:\jdk1.5.0_07

Modify the contents according to your system.

Regards

Ayyapparaj