开发者

Running a program from a file in Eclipse

开发者 https://www.devze.com 2022-12-24 23:57 出处:网络
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

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

精彩评论

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