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 147422 - Update PlatformInstaller for the latest JavaFX SDK structure
Summary: Update PlatformInstaller for the latest JavaFX SDK structure
Status: VERIFIED WORKSFORME
Alias: None
Product: javafx
Classification: Unclassified
Component: Platform (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Adam Sotona
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-16 20:27 UTC by David Kaspar
Modified: 2009-07-17 08:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log file (54.36 KB, text/plain)
2008-10-01 12:51 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Kaspar 2008-09-16 20:27:37 UTC
The latest JavaFX SDK structure has profile/desktop.properties which contains all information about the SDK including
classpaths...
Please, update the JavaFX SDK PlatformInstaller.
Comment 1 Adam Sotona 2008-09-18 11:16:41 UTC
fixed

BTW: platform and project implementation will require more changes to support multiple profiles
Comment 2 Alexandr Scherbatiy 2008-10-01 12:50:44 UTC
I renamed ${javafx_home}/lib directory to lib2 and updated the profile/desktop.properties file:
-------------------------------------------------------------------------------------------------------------------------
execute_classpath="${javafx_home}/lib2/shared/javafxrt.jar;${javafx_home}/lib2/desktop/Decora-D3D-Native.jar;${javafx_home}/lib2/desktop/Decora-D3D.jar;${javafx_home}/lib2/desktop/Decora-HW.jar;${javafx_home}/lib2/desktop/Decora-OGL.jar;${javafx_home}/lib2/desktop/Scenario.jar;${javafx_home}/lib2/desktop/gluegen-rt.jar;${javafx_home}/lib2/desktop/javafx-swing.jar;${javafx_home}/lib2/desktop/javafxgui.jar;${javafx_home}/lib2/desktop/jmc.jar;${javafx_home}/lib2/desktop/jogl.jar;${javafx_home}/lib2/desktop/websvc.jar"
# execute_bootclasspath_prepend=
# execute_bootclasspath_append=
# execute_bootclasspath=
execute_nativelibpath="${javafx_home}/lib2/desktop"
compile_classpath="${javafx_home}/lib2/desktop/Decora-D3D-Native.jar;${javafx_home}/lib2/desktop/Decora-D3D.jar;${javafx_home}/lib2/desktop/Decora-HW.jar;${javafx_home}/lib2/desktop/Decora-OGL.jar;${javafx_home}/lib2/desktop/Scenario.jar;${javafx_home}/lib2/desktop/gluegen-rt.jar;${javafx_home}/lib2/desktop/javafx-swing.jar;${javafx_home}/lib2/desktop/javafxgui.jar;${javafx_home}/lib2/desktop/jmc.jar;${javafx_home}/lib2/desktop/jogl.jar;${javafx_home}/lib2/desktop/websvc.jar"
compile_bootclasspath_prepend="${javafx_home}/lib2/shared/javafxc.jar;${javafx_home}/lib2/shared/javafxrt.jar"
# compile_bootclasspath_append=
# compile_bootclasspath=
# compile_nativelibpath=
javadoc_classpath="${javafx_home}/lib2/desktop/Decora-D3D-Native.jar;${javafx_home}/lib2/desktop/Decora-D3D.jar;${javafx_home}/lib2/desktop/Decora-HW.jar;${javafx_home}/lib2/desktop/Decora-OGL.jar;${javafx_home}/lib2/desktop/Scenario.jar;${javafx_home}/lib2/desktop/gluegen-rt.jar;${javafx_home}/lib2/desktop/javafx-swing.jar;${javafx_home}/lib2/desktop/javafxgui.jar;${javafx_home}/lib2/desktop/jmc.jar;${javafx_home}/lib2/desktop/jogl.jar;${javafx_home}/lib2/desktop/websvc.jar"
javadoc_bootclasspath_prepend="${javafx_home}/lib2/shared/javafxc.jar;${javafx_home}/lib2/shared/javafxdoc.jar;${javafx_home}/lib2/shared/javafxrt.jar"
# javadoc_bootclasspath_append=
# javadoc_bootclasspath=
# javadoc_nativelibpath=
jnlp_url=http://javafxdl.sfbay.sun.com/javafx-rt.jnlp
# jnlp_url=http://dl.javafx.com/javafx-rt.jnlp
-------------------------------------------------------------------------------------------------------------------------

I got an exception after IDE restarting: 

java.io.FileNotFoundException: profiles\desktop.properties (The system cannot find the path specified)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:106)
[catch] at
org.netbeans.modules.javafx.platform.platformdefinition.JavaFXPlatformImpl.loadProfileProperties(JavaFXPlatformImpl.java:351)
	at org.netbeans.modules.javafx.platform.platformdefinition.DefaultPlatformImpl.create(DefaultPlatformImpl.java:102)
	at org.netbeans.modules.javafx.platform.platformdefinition.PlatformConvertor.createPlatform(PlatformConvertor.java:223)
	at org.netbeans.modules.javafx.platform.platformdefinition.PlatformConvertor.instanceCreate(PlatformConvertor.java:213)
	at
org.netbeans.modules.java.platform.DefaultJavaPlatformProvider.getInstalledPlatforms(DefaultJavaPlatformProvider.java:89)
	at org.netbeans.modules.java.platform.DefaultJavaPlatformProvider.getDefaultPlatform(DefaultJavaPlatformProvider.java:119)
	at org.netbeans.api.java.platform.JavaPlatformManager.getDefaultPlatform(JavaPlatformManager.java:103)
	at org.netbeans.modules.javafx.project.JavaFXProjectGenerator.getDefaultSourceLevel(JavaFXProjectGenerator.java:358)
	at org.netbeans.modules.javafx.project.JavaFXProjectGenerator.createProject(JavaFXProjectGenerator.java:257)
	at org.netbeans.modules.javafx.project.JavaFXProjectGenerator.access$000(JavaFXProjectGenerator.java:77)
	at org.netbeans.modules.javafx.project.JavaFXProjectGenerator$1.run(JavaFXProjectGenerator.java:96)
	at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:120)
	at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:499)
Comment 3 Alexandr Scherbatiy 2008-10-01 12:51:44 UTC
Created attachment 70965 [details]
IDE log file
Comment 4 Adam Sotona 2008-10-07 15:30:15 UTC
Platform libraries are already taken from profiles/desktop.properties file - that should work. 
The true is that JavaFX Platform needs more improvements.
I don't see it as P1 issue as it is working for the regular usage.


BTW: when the exception says java.io.FileNotFoundException: profiles\desktop.properties then you probably moved or
renamed desktop.propertis or changed root of the platform
Comment 5 Lark Fitzgerald 2008-10-07 16:34:44 UTC
Actually, I'm running the automated tests and they are failing with this same issue.  These are all fresh 
repositories. http://hudson4qe.czech.sun.com/job/javafx-NB65-test/53/console
Comment 6 Lark Fitzgerald 2008-10-08 14:57:03 UTC
More info.  The automated tests are failing because they get the SDK from the platform cluster zip files.  
Unfortunately the SDK was removed from the cluster.zip's http://hg.netbeans.org/javafx?cmd=changeset;node=73aa534cb175
Comment 7 Lark Fitzgerald 2008-10-08 16:12:22 UTC
The automation side of this issue has been resolved.  The cluster was modified as per: 
http://www.netbeans.org/issues/show_bug.cgi?id=148041
We now pull both cluster and sdk zips.
Comment 8 Lark Fitzgerald 2008-10-20 21:43:50 UTC
This issue has been resolved a while ago.  Closing.
Comment 9 Lark Fitzgerald 2008-10-21 18:53:50 UTC
closing.