Re: Can't run zipped version of application
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <[email protected]> |
This is a PITA. I have been dealing with this issue as well with the recent development of a new NetBeans Platform application. We have a lot of existing plugins written between NetBeans versions 7.2 and 8.0. Almost all of them use one of the API's that have 8.0 compatibility bridges. NetBeans 8.1 will detect this and attempt to automatically add these bridge dependencies. THIS is the problem. I found I had to go through all my plugins and module suites and one by one remove the "8.0 Compatibility" dependencies. This will cause your compile to fail because it is retaining a reference to the older specification of that dependency. Next you need to go through each plugin dependency list and remove the base API dependency. Your code will still fail to compile but now your class files will 'red line' in the editor. Now if you click on your compilation error within the editor and select "Search for Module Dependency"... NetBeans will automatically pull in the latest 8.1 specification version. To my knowledge the three APIs that suffer from this are the FileSystem API, Execution API, and Progress API. TL;DR: For ALL your modules you are going to have to remove all FileSystem, Execution and Progress API dependencies, clean the projects, re-add those dependencies and rebuild.