| View previous topic :: View next topic |
| Author |
Message |
bardu
Joined: 19 Aug 2008 Posts: 46 Location: Canada
|
Posted: Wed Dec 16, 2009 5:25 am Post subject: JavaFX composer: can't run project |
|
|
When trying to run a project I get the following exception"
| Quote: | | Cannot run program "/usr/lib/jvm/jre1.6.0_17/bin/javac": java.io.IOException: error=2, No such file or directory |
Obviously, it pics the wrong path to the jdk, however, running a small JavaFX script project works fine. The project.properties of both projects looking identical.
I'm on Ubuntu 9.10
|
|
| Back to top |
|
 |
mryzl
Joined: 16 Dec 2009 Posts: 1
|
Posted: Wed Dec 16, 2009 5:14 pm Post subject: Re: JavaFX composer: can't run project |
|
|
This is weird - all JavaFX projects are the same and should execute the same commands. But for some reason jre is used instead of jdk in this case. Please try to set JAVA_HOME property to point to JDK 1.6 prior starting NetBeans.
| bardu wrote: | When trying to run a project I get the following exception"
| Quote: | | Cannot run program "/usr/lib/jvm/jre1.6.0_17/bin/javac": java.io.IOException: error=2, No such file or directory |
Obviously, it pics the wrong path to the jdk, however, running a small JavaFX script project works fine. The project.properties of both projects looking identical.
I'm on Ubuntu 9.10 |
|
|
| Back to top |
|
 |
bardu
Joined: 19 Aug 2008 Posts: 46 Location: Canada
|
Posted: Wed Dec 16, 2009 9:28 pm Post subject: |
|
|
| Unfortunately, it doesn't make any difference.
|
|
| Back to top |
|
 |
bardu
Joined: 19 Aug 2008 Posts: 46 Location: Canada
|
Posted: Thu Dec 17, 2009 1:38 am Post subject: |
|
|
I went to Ubuntu 9.10 16-bit box, but same problem as with the 64-bit box.
Common NB team get it fixed!!!
|
|
| Back to top |
|
 |
digiPixel
Joined: 11 Oct 2009 Posts: 14
|
|
| Back to top |
|
 |
bardu
Joined: 19 Aug 2008 Posts: 46 Location: Canada
|
Posted: Thu Dec 24, 2009 12:37 am Post subject: |
|
|
I just gave it another try the other day, but no use on both machines.
A JavaFX script project runs fine but a JavaFX composer project picks the wrong path to the jdk when I try to compile and run it.
And this is the relevant entry in my netbeans.conf:
| Quote: | # Default location of JDK, can be overridden by using --jdkhome <dir>:
netbeans_jdkhome="/usr/lib/jvm/jdk1.6.0_17" |
Since my JavaFX script, Java ME and Java EE projects just work fine, there must be a bug in the JavaFX composer plugin.
| Description: |
|
| Filesize: |
168.99 KB |
| Viewed: |
2880 Time(s) |

|
|
|
| Back to top |
|
 |
bardu
Joined: 19 Aug 2008 Posts: 46 Location: Canada
|
Posted: Sun Dec 27, 2009 3:58 am Post subject: |
|
|
| As a work-around I have created a symbolic link that allows me to access javac from jre/bin/.
|
|
| Back to top |
|
 |
|