In eclipse, how does one configure ARGs statistics and use command lines?

Source: Internet
Author: User

Q:How to transmit ARGs parameters in Java (eclipse) without cmd

A:Run-run in the eclipse menu bar
Ations, where there is a (x) = arguments. Click this option. You fill in a few parameters in the blank column under program arguments. Separate multiple parameters with spaces!

Q: How to submit input in the command line

A: Ctrl + d

Q: What kind of arguments are used in Java to receive ARGs metric data?

A: For example, int K = integer. parseint (ARGs [0]);

BelowAuto: http://www.oschina.net/question/28_46291

Although we already have an advanced ide like Eclipse, sometimes we also need to run some independent programs using the Windows Command Line during development. It is very troublesome to switch between the two programs. Therefore, eclipse provides such a tool that allows us to use Windows command lines in eclipse.


Step 1:Set a new external Configuration Tool
In eclipse, select "Run-> external tools deployments"
 


Step 2:Click
"New Launch configuration"
 

Step 3:New
Configuration Interface
 

Step 4:Provides command line configuration details
Name: The name you configured.
Location: The file location of cmd.exe
Working directory: the default working path after the command line is opened.
 

Step 5:Select "allocate"
Console check box
This option is to use the eclipse workbench as a command line to obtain the input and output.
 

Step 6:Click "run"
You will open a C: Command Line for the working path
 

Step 7;Several simple example commands
 

That's easy!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.