How do you run a java program that requires input from a file in Eclipse?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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 Tabthen underProgram Argumentsadd the input filename.Hope that helps!