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 254731 - JavaFX Project not upgraded correctly
Summary: JavaFX Project not upgraded correctly
Status: VERIFIED WORKSFORME
Alias: None
Product: javafx
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.1
Hardware: PC Windows 8.1
: P3 normal with 1 vote (vote)
Assignee: Roman Svitanic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-25 18:27 UTC by Lou Dasaro
Modified: 2015-10-06 18:48 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Clean.txt (628 bytes, text/plain)
2015-08-25 18:27 UTC, Lou Dasaro
Details
Upgrade problem (1) (66.09 KB, image/jpeg)
2015-08-25 18:28 UTC, Lou Dasaro
Details
Upgrade problem (2) (128.41 KB, image/jpeg)
2015-08-25 18:29 UTC, Lou Dasaro
Details
Steps to reproduce (544 bytes, text/plain)
2015-08-25 18:39 UTC, Lou Dasaro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lou Dasaro 2015-08-25 18:27:26 UTC
Created attachment 155638 [details]
Clean.txt

After upgrading project from NB 8.0.2 to 8.1 (Dev), NetBeans reports "Broken platform 'JDK_1.8'"
The NB 8.0.2 project specified "JDK_1.8" using JDK 8u51.
The Dev version of NB is:
Product Version: NetBeans IDE Dev (Build 201508240002)
Java: 1.8.0_51; Java HotSpot(TM) Client VM 25.51-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_51-b16
System: Windows 8 version 6.2 running on x86; Cp1252; en_US (nb)

After upgrading, system responds with "Project Problems" dialog.
Upon clicking the "Resolve Problems" button, I am presented with the Java Platform Manager, which displays the default JDK_1.8 that the project was created with (in NB 8.0.2). Somewhat confusing - the workaround is to create a new entry using the same JDK and assigning it to the project.

I think the real root cause clue can be found when I try to clean the project (without fixing it), which produces the output shown in the attachment "Clean.txt"
Comment 1 Lou Dasaro 2015-08-25 18:28:44 UTC
Created attachment 155639 [details]
Upgrade problem (1)
Comment 2 Lou Dasaro 2015-08-25 18:29:19 UTC
Created attachment 155640 [details]
Upgrade problem (2)
Comment 3 Lou Dasaro 2015-08-25 18:39:56 UTC
Created attachment 155642 [details]
Steps to reproduce
Comment 4 Tomas Mysik 2015-10-06 13:17:50 UTC
I cannot reproduce this issue, it works for me without any problem. What I did exactly:

- start NB 8.0.2 with a clean userdir on JDK 8
- create a new JavaFX Application
- run it
- close IDE
- start NB Dev with a clean userdir (and do not import any previous settings) on the same JDK 8
- open the JavaFX Application created before

-> result: build script is updated and no project problem appears; project can be built & run without any problems

One idea - perhaps, in NB 8.0.2, you have added your JDK manually and named it? In such a case, the Dev version of NB (without importing settings from NB 8.0.2) would not know about it, of course. But that is just a guess.

Feel free to reopen and provide more information (please, avoid attachments for information like steps to reproduce, simply write it as a new comment of this issue).

Thanks for reporting.

Product Version: NetBeans IDE Dev (Build 20151006-093b61d44575)
Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
System: Linux version 3.19.0-30-generic running on amd64; UTF-8; cs_CZ (nb)
Comment 5 Lou Dasaro 2015-10-06 18:48:11 UTC
Thank you for the solution. 

Of course, the only way one can build JDK 7 projects from within the IDE is to start NB 8.0.2 on JDK 7; this will also be the case for 8.1. 

The original Synergy test cases must be modified to include steps to reproduce as shown in the attachment, with the addition of steps to import settings as you have suggested.