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 163588 - BlueJ project cannot be converted to J2SE project when IDE started in ergo mode
Summary: BlueJ project cannot be converted to J2SE project when IDE started in ergo mode
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: BlueJ (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: issues@ide
Depends on:
Reported: 2009-04-24 13:12 UTC by Oleg Khokhlov
Modified: 2010-07-30 15:17 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Khokhlov 2009-04-24 13:12:26 UTC
- Start IDE with new userdir with ergonomics enabled.
- Install BlueJ plugin
- Create BlueJ project -> 'Convert to Java SE project' popup menu

progress will go to 10% and that's all.

Product Version: NetBeans IDE Dev (Build 200904240201)
Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Userdir: C:\Documents and Settings\tester\.netbeans\dev
Comment 1 Milos Kleint 2009-04-24 14:10:28 UTC
I guess something is not enabled properly
Comment 2 Jaroslav Tulach 2009-06-26 16:49:09 UTC
The following runtime lookup fails, as J2SEProject module is not enabled:

        Class j2seclazz = loader.loadClass("");  // 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

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/
--- a/o.n.bluej/     Tue Jun 23 09:32:51 2009 +0200
+++ b/o.n.bluej/     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/
 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>
+                </dependency>
+                <dependency>
+                    <code-name-base></code-name-base>
+                    <run-dependency>
+                        <release-version>1</release-version>
+                        <specification-version>1.27</specification-version>
Comment 3 Antonin Nebuzelsky 2010-07-30 15:17:12 UTC
Reassigning to default owner.