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 49739 - Cannot set main class that is in jar or zip
Summary: Cannot set main class that is in jar or zip
Status: RESOLVED DUPLICATE of bug 44271
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jiri Rechtacek
Depends on:
Reported: 2004-09-30 15:08 UTC by bstan
Modified: 2004-10-27 20:41 UTC (History)
0 users

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 bstan 2004-09-30 15:08:13 UTC
If a main class is in a jar or zip file, they
cannot be set as a main class. This occurs even if
the archive file is part of the compile or run
classpath. Entering the main class by hand appears
to be ignored. Using the browse button to find the
main class fails.

*** This is important feature that is works in
Netbeans v3.6 and also in Eclipse. Without it,
v4.0 is unusable for our development work ***
Comment 1 Milan Kubec 2004-10-01 08:45:46 UTC
Reassigning for evaluation.
Comment 2 Tomas Zezula 2004-10-26 14:59:11 UTC
It is easy to fix if it is really needed. The J2SEActionProvider
should check for the main class on ClassPath.EXECUTE rather than on
ClassPath.SOURCE. But the selection in the project customizer should
be done with ClassPath.SOURCE.
Comment 3 Jesse Glick 2004-10-27 20:41:23 UTC

*** This issue has been marked as a duplicate of 44271 ***