I have a java (2.0) program with the following lines:
String cmdArray1[] = {"lp", "-d", "hp4m", "MyFile"};
System.out.prin tln(Runtime.get Runtime().exec( cmdArray1));
It compliles properly, but does not print the file to the printer. It
displays the following as the return from Runtime...:
java.lang.UNIXP rocess@1034bb5
It apparently is sending something out to bash and getting that result back.
This in within SuSE 8.2 Linux running bash.
The following line typed into the shell works properly:
lp -d hp4m MyFile
Anyone have any ideas?
Thanks, John
String cmdArray1[] = {"lp", "-d", "hp4m", "MyFile"};
System.out.prin tln(Runtime.get Runtime().exec( cmdArray1));
It compliles properly, but does not print the file to the printer. It
displays the following as the return from Runtime...:
java.lang.UNIXP rocess@1034bb5
It apparently is sending something out to bash and getting that result back.
This in within SuSE 8.2 Linux running bash.
The following line typed into the shell works properly:
lp -d hp4m MyFile
Anyone have any ideas?
Thanks, John
Comment