Skip to Main Content

Embedded Technologies

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Ant Build Error - Unable to find a javac compiler

843849May 12 2008 — edited Feb 16 2011
I downloaded and installed the Sun Java Toolkit 1.0 for CDC. I can build and run the examples with no problem.

When I create my own project -- either by using the Create from Example option or the Create a New Project from Scratch option, I consistently receive this error message:

C:\CDCTK10\apps\JillianGolfHandset\nbproject\build-impl.xml:295: The following error occurred while executing this line:
C:\CDCTK10\apps\JillianGolfHandset\nbproject\build-impl.xml:148: 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
BUILD FAILED (total time: 0 seconds)

Unfortunately, I'm not an Ant jock.

I'd like to go fiddling with the JAVA_HOME environmental variable on my system, but something tells me I shouldn't have to touch it; why would the examples work if JAVA_HOME weren't set properly?

Any ideas?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 16 2011
Added on May 12 2008
6 comments
5,729 views