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 78762

Summary: Convert to J2SE project doesn't set Main Class
Product: ide Reporter: Marian Mirilovic <mmirilovic>
Component: BlueJAssignee: Milos Kleint <mkleint>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P4    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Marian Mirilovic 2006-06-21 12:39:25 UTC
NetBeans 5.0 BlueJ edition 200601251500 
JDK 1.5.0_06

Steps to reproduce:
- run IDE
- create BlueJ project
- create MainClass
- set the main class for project to MainClass
- convert to J2SE Project
-> the main class is not set
Comment 1 Milos Kleint 2006-06-22 10:37:23 UTC
non trivial fix, we don't depend on j2se project type and there's no API for
accessing/writing the properties of the project. use of complex reflections
probably necessary.
1. from j2se project retrieve the instance of Updatehelper
2. get editable props from that and updat ethe main.class property.
3. save the j2se project


Comment 2 Milos Kleint 2006-06-23 10:35:15 UTC
oh well, just hard copied the property values.
Comment 3 Marian Mirilovic 2006-06-27 10:09:09 UTC
verified in NB-bluej(200603142030)