With information from this link/page and several tries, I figure
out a way to pass argument and file using the local route in
eclipse Run -> Run Configurations.. , though it is not
recommended as Kane said.
For my case: I need to do " $java someClass tinyW.txt <
tinyT.txt " (This is an example from Algorithms book by Robert
In my case, " tinyW.txt " is a argument, so in the eclipse
environment, you can set in Run -> Run Configurations ->
Arguments -> Program arguments: /local address/tinyW.txt. For my
Ubuntu: /home/****/tinyW.txt " < tinyT.txt " is a file that
pipe to the main arguments, so you can set the route and file in "
Run -> RUn Configurations -> Common ", click the "Input
File", use the File System icon and select the file from local
compute. See the figure. So in Input File:
/local_address/tinyT.txt. My case is: /home/***/tinyT.txt. Hope it
also works for you.