This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 202677

Summary: Platform in generated project is not recognizable
Product: javafx Reporter: askirov
Component: PlatformAssignee: Anton Chechel <manowar>
Status: RESOLVED DUPLICATE    
Severity: normal CC: sergius
Priority: P3    
Version: 7.1   
Hardware: PC   
OS: Windows 7 x64   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 202455    
Bug Blocks:    
Attachments: Screenshot of situation when known platform in newly created project is not recognized
Sample newly generated project. Which has "defaul_javafx_platform" set, but not recognized.

Description askirov 2011-09-26 14:14:31 UTC
As you know, we have to prepare JFX for coming release. Now there is a problem with platform setting.

I create a new netbeans project from Ensemble application (You can open any item in the menu and click sources -> Save Netbeans Project.) It opens a new generated projects in Netbeans 7.1beta

As platform "Default_javafx_platform" is set.

NetBeans "knows" about this platform. 

BUT no javafx.* package is recognized by IDE.

After it we try to do the next trick:
we set JDK6 as platform. After, we set "default_javafx_platform" again. Now we get working and compiling project.

Summary: initially platform is not applied.

You can see sample project and screenshot in attachements.
Comment 1 askirov 2011-09-26 14:16:56 UTC
Created attachment 111192 [details]
Screenshot of situation when known platform in newly created project is not recognized
Comment 2 askirov 2011-09-26 14:18:06 UTC
Created attachment 111193 [details]
Sample newly generated project. Which has "defaul_javafx_platform" set, but not recognized.
Comment 3 Stepan Zebra 2011-09-26 14:26:16 UTC
(In reply to comment #2)
> Created an attachment (id=111193) [details]
> Sample newly generated project. Which has "defaul_javafx_platform" set, but not
> recognized.

Your sample project actually works fine for me on the latest beta build (201109252201). Can you give it a try with this build?
Comment 4 Stepan Zebra 2011-09-26 15:01:49 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Created an attachment (id=111193) [details] [details]
> > Sample newly generated project. Which has "defaul_javafx_platform" set, but not
> > recognized.
> 
> Your sample project actually works fine for me on the latest beta build
> (201109252201). Can you give it a try with this build?

Ahh, sorry for confusion. It works for me only because I have an instance of FX2 SDK installed on the default path which is set project.properties of your generated Sample.

This problem is a result of
https://netbeans.org/bugzilla/show_bug.cgi?id=202455

To workaround, invoking Properties on your project and just pressing OK, is enough. The project.properties are corrected after this action. You don't need to switch to another Platform.
Comment 5 Anton Chechel 2011-11-07 09:37:47 UTC

*** This bug has been marked as a duplicate of bug 202455 ***