Kat
Kat

Reputation: 678

Running a program from a file in Eclipse

How do you run a java program that requires input from a file in Eclipse?

Upvotes: 0

Views: 170

Answers (1)

Joel
Joel

Reputation: 16655

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!

Upvotes: 1

Related Questions