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 11455 - set main class could be easier
Summary: set main class could be easier
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: jarpackager (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on: 4029
Blocks:
  Show dependency tree
 
Reported: 2001-04-16 19:33 UTC by Jan Benway
Modified: 2004-08-13 12:11 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Benway 2001-04-16 19:33:45 UTC
As far as I can tell, the only way to set the main class for a jar is to type
the magic phrase into the manifest. I think this is a common enough manifest
entry that there should be some more UI infrastucture support. Maybe the main
class could be set using a property of the jar contents object. Other
interesting design ideas could potentially be generated by a quick and dirty
hallway usability study :).
Comment 1 Mike Schilling 2001-04-16 19:42:35 UTC
This makes more sense as part of a general manifest editor improvement than as a 
one-off.  As the definition of class jar.utils.manifest.Manifest shows, a 
manifest is really:

    A set of properties applying to the entire jar file, plus

    A set of per-jar-file-entry sections, each of which consists of another set 
of properties

And the rules for parsing text into this structure are not obvious, in 
particular the rules for white space handling.  Creating an editor which 
reflects this structure would make entering a manifest by hand far less 
error-prone.  Allowing shortcuts for common entries (e.g. the main class and 
classpath for an executable jar) would be easy ehancements.

Comment 2 Jesse Glick 2001-04-18 18:42:42 UTC
For example, ability to set Versioning Specification attributes easily (package
version, title, vendor, etc.).

If you have not done so already, try using the apisupport's support for module
manifests, which implements a simple domain-specific manifest editing facility
with two-way editing. Far from perfect but could help form a prototype.
Comment 3 Jan Chalupa 2001-05-05 23:09:16 UTC
Target milestone 3.3
Comment 4 Jan Chalupa 2001-11-27 12:47:30 UTC
Target milestone -> 3.3.1.
Comment 5 Marek Grummich 2002-07-22 10:05:13 UTC
Set target milestone to TBD
Comment 6 Marek Grummich 2002-07-22 10:08:27 UTC
Set target milestone to TBD
Comment 7 Jesse Glick 2004-03-19 14:51:00 UTC
With new J2SE project type, just type in the main class in the project
customizer.