andandandand
andandandand

Reputation: 22270

How can I pass command line arguments to a program via Netbeans?

I want to use my args array.

I mean this array:

public static void main(String[] args)

Where can I run something like java Test one two three?

Upvotes: 0

Views: 1085

Answers (3)

johannes
johannes

Reputation: 15969

Go to the project properties (either File -> Project properties or richt click on the project in he projects list on the left), select "Run" and there you can set it.

Upvotes: 3

Pablo Santa Cruz
Pablo Santa Cruz

Reputation: 181280

In the run configuration section. Here is how.

Upvotes: 4

Robert Cabri
Robert Cabri

Reputation: 3981

Check the properties of the java project. There you see the menu item "Run" There you can specify arguments for you commandline.

Upvotes: 3

Related Questions