cancel
Showing results for 
Search instead for 
Did you mean: 

Build fails in some DC's - JAVA_HOME error?

Former Member
0 Kudos

When building a Development component I get an error

file:.../build.xml:63: 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

This only happens on DC's but not on local projects.

JAVA_HOME IS set!

What could be wrong? (Using SP13 and j2sdk1.4.2_08 )

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Even I faced the same problem.

I dont know the actual problem. But I fixed this by copying all the files and folders in "<b>j2sdk1.4.2_07</b>" to the "<b>C:\Program Files\Java</b>" folder.

Former Member
0 Kudos

Thanks saravanan

DC's are compoling but it is giving warning

'No 'default' JDK_HOME_PATH defined, will use running VM. Please update your configuration.
ERROR: failed to parse public part file list

The java classpath variables in NWDS is perfectly setup.

Then why this warning is coming from ?

Best Regards

Ananda

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Ananda,

I can comment only after seeing the entire stacktrace.

Thanks

Saravanan.

0 Kudos

Hi,

if you are building DCs with JAPRO please change your JAVA_HOME to a folder not having blanks in the path, because this confuses JAPRO.

I.e. C:\Program Files\Java will not work because of the blank between Program and Files. Install the JDK to a path without blanks, e.g. C:\Java.

Regards,

Vedran

Former Member
0 Kudos

Hi,

JAVA_HOME - C:\Program Files\Java is working fine for me.

Thanks

Saravanan.

Former Member
0 Kudos

But projects without DC are running .

I have uninstalled & reinstalled NWDS but same error.