954,523 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

JavaFX Composer Application (Netbeas 6.8) build error - cannot find javac

Hi,
I just struggeled all day how can I build JavaFX Application made with visual composer plugin in Nebeans. Every other application worked but this doesn't. When I build it says can't find javac. Of course, javac .exe is not located in the JRE...

Cannot run program "C:\Program Files\Java\jre6\bin\javac.exe": CreateProcess error=2, The system cannot find the file specified
C:\.....\My Documents\NetBeansProjects\FXComposerMobile\nbproject\build-impl.xml:143: exec returned: -1
BUILD FAILED (total time: 0 seconds)


PLEASE HELP ME.

Clawsy
Posting Whiz in Training
225 posts since Feb 2008
Reputation Points: 11
Solved Threads: 7
 

I found the solution. Added Tools->Variables->Add new...
JAVA_HOME /
PATH /

Clawsy
Posting Whiz in Training
225 posts since Feb 2008
Reputation Points: 11
Solved Threads: 7
 

You need to make sure that the directory that contains javac.exe is on your Classpath. Check the procject properties. My recommendation would be to download NetBeans with the JDK this way you won't have to worry about point your project to where you installed the JDK.

Hi, I just struggeled all day how can I build JavaFX Application made with visual composer plugin in Nebeans. Every other application worked but this doesn't. When I build it says can't find javac. Of course, javac .exe is not located in the JRE...

Cannot run program "C:\Program Files\Java\jre6\bin\javac.exe": CreateProcess error=2, The system cannot find the file specified
C:\.....\My Documents\NetBeansProjects\FXComposerMobile\nbproject\build-impl.xml:143: exec returned: -1
BUILD FAILED (total time: 0 seconds)

PLEASE HELP ME.

iparkin
Newbie Poster
11 posts since Dec 2004
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: