NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

JavaFX composer: can't run project

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
bardu



Joined: 19 Aug 2008
Posts: 46
Location: Canada

PostPosted: Wed Dec 16, 2009 5:25 am    Post subject: JavaFX composer: can't run project Reply with quote

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

PostPosted: Wed Dec 16, 2009 5:14 pm    Post subject: Re: JavaFX composer: can't run project Reply with quote

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

PostPosted: Wed Dec 16, 2009 9:28 pm    Post subject: Reply with quote

Unfortunately, it doesn't make any difference.
Back to top
bardu



Joined: 19 Aug 2008
Posts: 46
Location: Canada

PostPosted: Thu Dec 17, 2009 1:38 am    Post subject: Reply with quote

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

PostPosted: Wed Dec 23, 2009 11:05 pm    Post subject: Reply with quote

JavaFX Composer does work in Linux, especially Ubuntu 9.10 Surprised. Have you correctly set netbeans_jdkhome in your netbeans.conf (on my machine it is located in /usr/local/netbeans-6.8/etc)? If netbeans_jdkhome is set then it will override the JAVA_HOME environment variable.

You should see something similar to this in netbeans.conf (if it is present):

netbeans_jdkhome="/opt/jdk1.6.0_14"



JavaFX Composer 2.png
 Description:
JavaFX GUI app running in NetBeans with JavaFX Composer.
 Filesize:  133.08 KB
 Viewed:  3769 Time(s)

JavaFX Composer 2.png


Back to top
bardu



Joined: 19 Aug 2008
Posts: 46
Location: Canada

PostPosted: Thu Dec 24, 2009 12:37 am    Post subject: Reply with quote

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.



Screenshot.png
 Description:
 Filesize:  168.99 KB
 Viewed:  3757 Time(s)

Screenshot.png


Back to top
bardu



Joined: 19 Aug 2008
Posts: 46
Location: Canada

PostPosted: Sun Dec 27, 2009 3:58 am    Post subject: Reply with quote

As a work-around I have created a symbolic link that allows me to access javac from jre/bin/.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo