Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
java commands don't accept stdin
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
myguidingstar
n00b
n00b


Joined: 01 Jan 2012
Posts: 9

PostPosted: Wed Jan 30, 2013 5:09 pm    Post subject: java commands don't accept stdin Reply with quote

`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
View user's profile Send private message
ce110ut
Apprentice
Apprentice


Joined: 27 Sep 2002
Posts: 199

PostPosted: Thu Jan 31, 2013 4:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum