Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
294 views

How can I create a pipeline between two jar files with the command prompt?

I'm currently stuck trying to run two jar files on a pipeline using the command line in windows 10. ================================================================= These are the steps of what I ...
Sergio's user avatar
  • 11
1 vote
0 answers
2k views

Implementing a Named Pipe Listener in Java that will read a Windows Named Pipe

My code is in Java and I need to integrate with another program on the same Windows machine that is written in .NET/WPF. The .NET/WPF program is sending data using Windows Named Pipes that are ...
Al Linke's user avatar
0 votes
1 answer
282 views

Java WINAPI Anonymous Pipe Invalid/Not Found?

Java seems unable to inherit anonymous pipes from the WinAPI, I am using my own library and can not figure out what the issue is. Library source on the current commit. The anon test: package net....
gudenau's user avatar
  • 540
5 votes
1 answer
623 views

Why does the Java CRLF token does not work with batch file inputs?

background: I once answered this question that was about flushing two input strings from a Java process to a batch script. Since I found a workaround solution I am still very interested to solve the ...
ArcticLord's user avatar
  • 4,039
1 vote
1 answer
915 views

Automating jar input

I have a jar file which asks user the value of n. And adds the values entered. When the jar is executed from cmd.exe, works well. But when invoked from .bat file, it is not prompting for the input ...
Hunterr's user avatar
  • 553
3 votes
0 answers
551 views

Redirect input whith pipe and java

I have read Creating a Child Process with Redirected Input and Output in MSDN. And I have redirected output.But redirect input is different from this example in my case. I have run java -jar xxx.jar ...
zzy's user avatar
  • 1,793
2 votes
1 answer
5k views

Java Runtime.getRunTime().exec(CMD) not supporting pipes

I'm attempting to write a program that will display and be able to update your IP address settings using a JFrame window. I am looking at running this purely on windows so I'm attempting to be able to ...
Kane Charles's user avatar
2 votes
0 answers
375 views

Windows pipe hanging

This is a frustrating problem. I'm running the following Java code: try { String query = someQuery, input = someInput; ProcessBuilder pb = new ProcessBuilder("cmd", "/c"...
OckhamsRazor's user avatar
  • 4,906
3 votes
2 answers
4k views

Java/C++ communication via pipe on Windows

I have two separate programs, one in Java and one in C++, both running on Windows. We need to do bidirectional interprocess communication between the two. Up until now, we were using this awkward ...
Warlax's user avatar
  • 2,539
0 votes
1 answer
3k views

Java: dealing properly with pipes as stdin

I get a weird error ("The process tried to write to a nonexistent pipe.") if I stop reading from piped input, from a program that works fine for non-piped input. How can I avoid causing this error? ...
Jason S's user avatar
  • 190k