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 134322

Summary: [Mac] build.properties should contain right platforms.${platform}.bootcp property
Product: javafx Reporter: Alexandr Scherbatiy <sunflower>
Component: UnsupportedAssignee: Andrey Yamkovoy <kaktus>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description Alexandr Scherbatiy 2008-05-01 12:01:29 UTC
Tom Ball wrote:
> I just found that the new JavaFX Platform support generates a platforms.${platform}.bootcp property in the user's
build.properties file which can never work on a Mac (regardless of what Java version is installed).  This is because
that property is built from {JRE.lib.jars}:{JavaFXSDK.lib.jars}:{JRE.lib.ext.jars}, but for it to work on Macs, the
JavaFXSDK.lib.jars must be first.  I just verified that manually editing my platform.bootcp property to match this new
pattern works on Java 5 and Java 6, so the fix should be simple.
>
> The reason the javafxc and similar tasks have to have the SDK jars first is because Apple puts the javac classes in
its equivalent of rt.jar (classes.jar).  To enhance javac (which javafxc does), you therefore have to prepend the
enhanced classes to the bootclasspath.  On Sun-provided JDKs, those classes go into tools.jar on the classpath, which is
much easier to override.
>
> I believe this is a show-stopper because many of the developers and designers we are trying to attract with JavaFX use
Macs.
>
> Tom
Comment 1 Alexandr Scherbatiy 2008-05-29 11:04:46 UTC
From forum post http://forums.java.net/jive/thread.jspa?messageID=276449
------------------------------------------------------------------------
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=/Users/<yourUserNameHere>/.netbeans/6.1/modules/ext/compiler/lib/javafxc.jar:
...
------------------------------------------------------------------------

Comment 2 Andrey Yamkovoy 2008-05-29 16:34:30 UTC
Looks like it was fixed by rewriting JavaFX platform code which adds platform related properties.
At least it's reproducible with last public plugin created 18 Apr 2008 and not reproducible with plugin created from
latest sources. 

As far as I see in the build.properties file and platform sources boot classpath property is generated as
{SDK_JARS}:{JDK_JARS}.
Comment 3 Alexandr Scherbatiy 2008-06-26 11:12:43 UTC
verified
Comment 4 David Strupl 2011-10-19 12:03:18 UTC
Cleaning bugzilla categories ....