View previous topic :: View next topic |
Author |
Message |
myguidingstar n00b
Joined: 01 Jan 2012 Posts: 14
|
Posted: Wed Jan 30, 2013 5:09 pm Post subject: java commands don't accept stdin |
|
|
`java` command in Gentoo is a bash so that you can't do this:
Quote: | echo 'hello' | java -jar an-app-that-uses-stdio.jar
|
I've just spent the whole day to figure out that wasn't my programming fault.
Now I have to specify full path to a java jre and that's weird.
Are there any suggestions for this? |
|
Back to top |
|
|
ce110ut Apprentice
Joined: 27 Sep 2002 Posts: 200
|
Posted: Thu Jan 31, 2013 4:46 pm Post subject: |
|
|
hello myguidingstar,
Does the java app require a flag/switch in order for it to read from stdin? Are you able to share the java code that presumably uses stdio? |
|
Back to top |
|
|
|