Skip to main content

how can i open sdk demos in netbeans as javafx project?

6 replies [Last post]
riepi
Offline
Joined: 2008-03-27
Points: 0

Hi,
i want to open the demos/projekts which are located in
NetBeans 6.1\javafx\javafx-sdk1.0\demos\

But when i choose "open project" in NetBeans, the project is openend as Java Project and i get Reference Problems. How can i open projects as JavaFx projects and compile?

riepi

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
alexsch
Offline
Joined: 2007-07-12
Points: 0

Which reference problem do you have?

Try change the JavaFX SDK platform to default (Project properties-> Libraries->
select the default JavaFX SDK from a combo-box).

riepi
Offline
Joined: 2008-03-27
Points: 0

this seems to be the problem. I cant choose it. In all my other projects i can choose.

alexsch
Offline
Joined: 2007-07-12
Points: 0

What is a version (date) of the plugin do you use? What is the name of the demo
that you try to open? Can you just file an issue on it ( http://javafx.netbeans.org/issues/enter_bug.cgi?component=javafx )?
That helps to investigate the problem.

riepi
Offline
Joined: 2008-03-27
Points: 0

I use daily builds of compiler and plugins. Perhaps i make something wrong. I am not so familiar with Netbeans so far. I want to open any projekt in the daily builds, for example archive\openjfx-compiler\dist\demos\Guitar. When i open, projects are recognized as Java projects with java Platform JDK 1.6 but not JavaFX. I don't know how to change this, because in the combobox u mentioned, i see only java Platforms.

alexsch
Offline
Joined: 2007-07-12
Points: 0

I see. Some projects in openjfx-compiler\dist\demos have been created as Java projects
many times ago. There is no a direct way to convert Java project to JavaFX project.
Just create a new JavaFX project and copy sources from the demo to new one.

You can also file an issue that all demos should have JavaFX Script project type
in JIRA under Demos component:
http://openjfx.java.sun.com/jira/secure/CreateIssue.jspa

riepi
Offline
Joined: 2008-03-27
Points: 0

Thank you very much.