cancel
Showing results for 
Search instead for 
Did you mean: 

REG: Unable to find a javac compiler

Former Member
0 Kudos

Hi,

I am using NWDS7.0 sp18 , installed JREs is j2sdk1.4.2_09 .

I am trying to build a Development Component, but Build is getting failed .

Error: Build stopped due to an error: Unable to find a javac compiler;

com.sun.tools.javac.Main is not on the classpath.

Perhaps JAVA_HOME does not point to the JDK

I also added the environmental Variables JAVA_HOME with value as C:\j2sdk1.4.2_09 .

Could you all please suggest the solution for the build error.

Thanks a lot in advance.

Thanks & Regards,

Anil

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

to me it seems like your NWDS is running on a JRE and NOT on a JDK.

Setting JAVA_HOME does not help here.

Try the following:

Create a shortcut to your NWDS (SapIde.exe) on your desktop.

Edit the properties of that shortcut and edit the target.

Add the path to your JDK here by use of the "-vm" parameter

See my example:

C:\IDESP18\IDE70\eclipse\SapIde.exe -vm "C:\Program Files (x86)\Java\jdk1.6.0_20\bin\javaw.exe"

You may notice that I am using JDK 1.6 but your 1.4 version should of course work.