2011年8月29日 星期一

[Java] Use Command Line Arguments in Eclipse

Click Run > Run Configurations... > Arguments



Note: In Sort example of log4j logging service, we need this configuration. When we set arguments to C:\sort2.properties 3 for example, the console shows:
Also, you can find "test" log file in your Java project directory.

Enjoy!

沒有留言:

張貼留言