0

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?

3 Answers 3

4

In the run configuration section. Here is how.

Sign up to request clarification or add additional context in comments.

1 Comment

Unfortunately this link is no longer correct. It throws 404 for me :(
3

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

Comments

3

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.

1 Comment

can I enable assertions on the Vm options box?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.