开发者

Running a program from a file in Eclipse

How do you run a java program that requires input from a file in 开发者_运维知识库Eclipse?


Not 100% sure if this is what you wanted. You may need to clarify your question more. You mean you pass in the name of the file through the commandline args?

You can add the file to the path by: Run Menu->Run Configurations...->Arguments Tab then under Program Arguments add the input filename.

Hope that helps!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜