Skip to main content

Netbeans 6.1 + Netbeans Plugin + JavaFXC M3 + Mac OS X

4 replies [Last post]
oliver_
Offline
Joined: 2008-02-27
Points: 0

Hi,

I am trying to compile JavaFX Script Code in Netbeans. However something is wrong.

What I have done:
* Install Netbeans 6.1
* Install the newest Netbeans JavaFX Plugin
* Install the JavaFX Compiler
* Try to set all Compiler Path Settings in Netbeans

My script:

package javafxapplication1;

Frame{
title: "Hello"
height:100
width:200
content: {
Label{
text: "text"
}
}
visible: true
}

My error message:

init:
deps-jar:
Compiling 1 source file to /Users/oliver/NetBeansProjects/JavaFXApplication1/build/classes
Exception in thread "main" java.lang.NoSuchMethodError: com.sun.tools.javac.main.RecognizedOptions.getJavacFileManagerOptions(Lcom/sun/tools/javac/main/RecognizedOptions$OptionHelper;)[Lcom/sun/tools/javac/main/JavacOption$Option;
at com.sun.tools.javac.util.JavacFileManager.(JavacFileManager.java:973)
at com.sun.tools.javafx.main.Main.registerServices(Main.java:343)
at com.sun.tools.javafx.main.Main.compile(Main.java:532)
at com.sun.tools.javafx.main.Main.compile(Main.java:305)
at com.sun.tools.javafx.Main.compile(Main.java:86)
at com.sun.tools.javafx.Main.main(Main.java:71)
BUILD FAILED (total time: 2 seconds)

Does anyone know what I have done uncorrectly?

Thank you,
Oliver

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
oliver_
Offline
Joined: 2008-02-27
Points: 0

Hi.

I am so sorry, that answer so lately. I was quite busy the last days.

First of all, I add the line in the build.properties.

platforms.default_fx_platform.bootclasspath=[b]/Users/oliver/.netbeans/6.1/modules/ext/compiler/lib/javafxc.jar:[/b](...)

Then I got the following error message:

init:
deps-jar:
Compiling 1 source file to /Users/oliver/NetBeansProjects/JavaFXApplication1/build/classes
/Users/oliver/NetBeansProjects/JavaFXApplication1/src/javafxapplication1/Main.fx:13: cannot find symbol
symbol : class Frame
location: class javafxapplication1.Main
Frame{
/Users/oliver/NetBeansProjects/JavaFXApplication1/src/javafxapplication1/Main.fx:18: cannot find symbol
symbol : class Label
location: class javafxapplication1.Main
Label{
2 errors
BUILD FAILED (total time: 8 seconds)

Finally, I also add the import.

[b]import javafx.ui.*;[/b]

Now, it works!!!!!!!!!!!!!!

I am so happy. :)

Thank you very, very, very much to elix and vorgi!!!!!

vorgi
Offline
Joined: 2003-08-17
Points: 0

Hi,

i had similar errors and posted a bugreport. I had to change to build.properties located in the .netbeans directory (usually in your home). Putting the javafxc.jar to the beginning should help:
...
platforms.default_fx_platform.bootclasspath=[b]/Users//.netbeans/6.1/modules/ext/compiler/lib/javafxc.jar[/b]: ...
...

elix
Offline
Joined: 2006-09-14
Points: 0

>What I have done:
>* Install Netbeans 6.1
>* Install the newest Netbeans JavaFX Plugin
>* Install the JavaFX Compiler
>* Try to set all Compiler Path Settings in Netbeans

BTW you don't need to download compiler and make any settings, libraries are in the plugin.

elix
Offline
Joined: 2006-09-14
Points: 0

add these

import javafx.ui.*;
import javafx.ui.canvas.*;