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

Summary: Add ability to execute / run class with parameters
Product: java Reporter: clever <clever>
Component: ProjectAssignee: Jesse Glick <jglick>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: ENHANCEMENT Exception Reporter:

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)

Thanks!
-Sean
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 ***