简体   繁体   中英

How do you set the command-line arguments in Eclipse?

I'm having trouble setting the command-line arguments in Eclipse.

I've searched around the Internet but can't find anything that helps people with invisible textboxes. I even tried pressing the help button and nothing came up.

How does one set the command-line arguments in Eclipse for a Java project?

Screenshot of Eclipse http://static.zooomr.com/images/8978910_d91c113b07.jpg

Edit: I've tried blowing away Eclipse and reinstalling to no avail.

I also scanned for JREs again and switched to using the JDK instead of the JRE. This did not help matters.

You need to set the main class and java runtime version first to see the text boxes. Then put the args in the "Program arguments" textbox.

Try resizing the window to make the text boxes appear.

I tried it on my Mac and if you make the window small enough the text boxes get obscured.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM