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.
Summary: | BlueJ project cannot be converted to J2SE project when IDE started in ergo mode | ||
---|---|---|---|
Product: | ide | Reporter: | Oleg Khokhlov <ovk> |
Component: | BlueJ | Assignee: | issues@ide <issues> |
Status: | NEW --- | ||
Severity: | blocker | CC: | anebuzelsky, mkleint |
Priority: | P3 | Keywords: | ERGONOMICS |
Version: | 6.x | ||
Hardware: | All | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Oleg Khokhlov
2009-04-24 13:12:26 UTC
I guess something is not enabled properly The following runtime lookup fails, as J2SEProject module is not enabled: Class j2seclazz = loader.loadClass("org.netbeans.modules.java.j2seproject.J2SEProjectGenerator"); // NOI18N Method createMethod = j2seclazz.getMethod("createProject", new Class[] { // NOI18N File.class, String.class, String.class, String.class, String.class }); createMethod.invoke(null, new Object[] { file, info.getName(), null, null, null }); handle.progress(5); Simple fix is to add runtime dependency on that project like in following patch. However I rather leave the final fix on the maintainer of the code: diff -r a057deef0e8b o.n.bluej/manifest.mf --- a/o.n.bluej/manifest.mf Tue Jun 23 09:32:51 2009 +0200 +++ b/o.n.bluej/manifest.mf Fri Jun 26 17:48:23 2009 +0200 @@ -3,5 +3,5 @@ OpenIDE-Module-Layer: org/netbeans/bluej/layer.xml OpenIDE-Module-Localizing-Bundle: org/netbeans/bluej/Bundle.properties OpenIDE-Module-Requires: org.netbeans.api.javahelp.Help -OpenIDE-Module-Specification-Version: 1.4 +OpenIDE-Module-Specification-Version: 1.5 diff -r a057deef0e8b o.n.bluej/nbproject/project.xml --- a/o.n.bluej/nbproject/project.xml Tue Jun 23 09:32:51 2009 +0200 +++ b/o.n.bluej/nbproject/project.xml Fri Jun 26 17:48:23 2009 +0200 @@ -74,6 +74,13 @@ <run-dependency> <release-version>1</release-version> <specification-version>1.8.1</specification-version> + </run-dependency> + </dependency> + <dependency> + <code-name-base>org.netbeans.modules.java.j2seproject</code-name-base> + <run-dependency> + <release-version>1</release-version> + <specification-version>1.27</specification-version> </run-dependency> </dependency> <dependency> Reassigning to default owner. |