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 51036 - Add ability to execute / run class with parameters
Summary: Add ability to execute / run class with parameters
Status: RESOLVED DUPLICATE of bug 49636
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Jesse Glick
Depends on:
Reported: 2004-11-01 14:56 UTC by clever
Modified: 2004-11-01 21:08 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description clever 2004-11-01 14:56:16 UTC
In nb 3.6 there were properties for a main() class
type that allowed for running the class and
specifying parameters. This proved to be very
useful for me to test some classes within my web
application that had a main() method.

The new implementation seems to allow only to
"run" at the project level with the granularity I
need. The option to "Run" against a single class
is useful, but I can't specify any parameters!

Either add the properties back to the class, allow
for multiple configurable "Run" configurations per
project (meaning that for web projects also allow
a configuration for 'main' classes), or add a
"Run..." to the right click context menu allowing
to specify command options when ran. (Perhaps even
remember the last parameters used, in case a class
accepts a long string of parameters)

Comment 1 Jesse Glick 2004-11-01 21:08:14 UTC
No current plans to implement, but possible. Naturally you can add Ant
targets to run such classes with whatever arguments you like, but this
is not currently supported in the GUI.

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