Friday, 17 April 2009

JavaFX on Netbeans 6.5

  1. Download all .nbm files from http://updates.netbeans.org/netbeans/updates/6.5.1/uc/final/stable/patch3/javafx2/
  2. Quit NetBeans
  3. cp org-netbeans-modules-javafx-sdk-mac.nbm temp
  4. unzip org-netbeans-modules-javafx-sdk-mac.nbm
  5. Edit info/info.xml and delete org.openide.modules.os.MacOSX from it.
  6. Delete all files in "META-INF" folder
  7. Unzip netbeans/modules/org-netbeans-modules-javafx-sdk-mac.jar using jar - jar xvf org-netbeans-modules-javafx-sdk-mac.jar
  8. Delete in META-INF/MANIFEST.MF the required module org.openide.modules.os.MacOSX
  9. Delete the previous jar file - rm org-netbeans-modules-javafx-sdk-mac.jar
  10. Re-archive jar content - jar cvfm org-netbeans-modules-javafx-sdk-mac.jar META-INF/MANIFEST.MF org
  11. Make all files executable in netbeans/javafx-sdk/bin - chmod u+x netbeans/javafx-sdk/bin/*
  12. Delete the downloaded org-netbeans-modules-javafx-sdk-mac.nbm in TEMP directory and Zip all content of TEMP (1) rm org-netbeans-modules-javafx-sdk-mac.nbm (2) zip -r org-netbeans-modules-javafx-sdk-mac.nbm *
  13. Use the modified org-netbeans-modules-javafx-sdk-mac.nbm with the other .nbm
  14. Start NetBeans - Goto tools -> Plugins - Select Downloaded tab - click on Add Plugins - Browse to the directory of the downloaded .nbm files - Select all .nbm files - click on Install- Avoid the Warning message(Continue) - Restart NetBeans !

No comments: