[ 
https://issues.apache.org/jira/browse/NETBEANS-4036?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17061657#comment-17061657
 ] 

Geertjan Wielenga commented on NETBEANS-4036:
---------------------------------------------

Right, when you’re not running on a JDK that includes JavaFX, JavaFX-related 
functionality will not work. Use JDK 8, for example.

> Package as DMG Image fails with "typedef class com.sun.javafx.tools.ant.FXJar 
> cannot be found using the classloader AntClassLoader[]"
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: NETBEANS-4036
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4036
>             Project: NetBeans
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 11.3
>         Environment: Mac OS Catalina 10.15.3 (current and latest) and 
> NetBeans:
> Product Version: Apache NetBeans IDE 11.3
> Java: 14; Java HotSpot(TM) 64-Bit Server VM 14+36-1461
> Runtime: Java(TM) SE Runtime Environment 14+36-1461
> System: Mac OS X version 10.15.3 running on x86_64; UTF-8; en_GB (nb
>            Reporter: David Gradwell
>            Priority: Major
>         Attachments: TestMacOSXPackagingWithAnt.zip
>
>
> Steps to reproduce:
> 1.  Install fresh copy of 11.3 (also tested with 11.1 with same results)
> 2 Create new Project "Java with Ant", "Java Application".
> 3.  Create a single Java file such as:
> package testmacdmgwithant;
> public class TestMacDMGwithAnt {
> /**
>  * @param args the command line arguments
>  */
>  public static void main(String[] args) 
>  {
>  int a=1;
>  }
>  
> }
>  
> 4. Go clean and build and debug to prove it works OK.
> 5. Run the .jar in the dist folder to prove it works OK.
> 6. Go right click on the project and select "Package as DMG Image"
>  
> End of output is:  
> .../NetBeansProjects/TestMacDMGwithAnt/nbproject/build-native.xml:519: 
> typedef class com.sun.javafx.tools.ant.FXJar cannot be found
>  using the classloader AntClassLoader[]
> BUILD FAILED (total time: 0 seconds)
>  
> 7.  Note that this works fine on NetBeans 8.2 and also fails on 11.0..
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to