cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to find a javac compiler

Former Member
0 Kudos

Hello frnds,

I am getting the follwing error when i am building a ESS DC after few small changes.

I also defined Environment Variable JAVA_HOME = C:\j2sdk1.4.2_14. Still getting the following error.

Error: C:\Documents and Settings\ABC\.dtc\0\DCs\sap.com\ess\ben\_comp\gen\default\logs\build.xml:155: 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.

Thanks

Shobhan

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Do as follows

From the NWDS

Select Window->Preferences...->Java->Installed JREs

Add your JDK path to the table.

Regards

Ayyapparaj

Former Member
0 Kudos

Hello Frnds,

Thanks for all suggetions. I resolved it following way.

The main issue was i was having only JRE installed on my system. No JDK was there.

So NWDS was not able to compile anything. I did installed J2SDK and gave the JRE Reference under Windows -- preferences.. however it didn't solved the issue.

I went ahead and uninstalled and reinstalled NWDS with JDK reference.

Its working fine now.

Thanks

Shobhan

Former Member
0 Kudos

Please provide the text of build.xml file.

Also try after putting "C:\j2sdk1.4.2_14\bin" in PATH environment variable, I guess it wouldn't affect but give it a try.

Jawed Ali