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
0 votes
2 answers
5k views

Running Java program via Command Prompt with input and output files

I have a program that is supposed to take inputs from the commandline and direct them to standard input and direct the output to standard output. The code supposed to be entered into the commandline ...
Alkarin's user avatar
  • 464
4 votes
0 answers
3k views

How to run automated stdin input when running Java program in IntelliJ IDEA?

I'm developing a Java program in IntelliJ IDEA 13.1. To run the program at command-line $ echo 1 a b | java MyProgram 3 The 3 is an argument, and when MyProgram started, it expects 1 a b being input ...
user78219's user avatar
1 vote
1 answer
73 views

How to tell what type of input is being used in Java

I am writing a program in Java and I want it to accept two different methods of input. One would be piping a file into into the program like this: java program < inputFile.txt Another way I want ...
user2361174's user avatar
  • 2,002
1 vote
3 answers
883 views

Command line java, file argument and piped input

I'm working on a program and I'd like it to function like this my_program -o Words Where "Words" is a file, but I'd also like it to function with piped input not from a file, so grep test Words | ...
Brian Ecker's user avatar
  • 2,107
1 vote
0 answers
173 views

Piping to a new Command Line in Java

I am writing a program that creates a this batch file: at xx:xx /interactive "cmd.exe" The program allows the user to select the time themselves, and on a computer running Windows XP, the command ...
AppleProducts's user avatar
13 votes
4 answers
33k views

Command Line Pipe Input in Java

Here is a simple piece of code: import java.io.*; public class Read { public static void main(String[] args) { BufferedReader f = new BufferedReader(new InputStreamReader(System.in)); while(...
TJ-'s user avatar
  • 14.4k