Redirection with the > symbol is part of the shell, not part of java

Why not run it from QSH or QP2SHELL? then what you are doing will work.

On Fri, Jan 20, 2017 at 10:29 AM, Gordon Schneider <
schneiderg@xxxxxxxxxxxxxxxxx> wrote:

I have installed the tika java application from on our power
server running IBM I version 7.2 and on my PC running Windows 10. We get a
word document from one of our vendors. We need to extract the text from it
to process the document.

I have this working on my PC by using the following command:

C:\Users\gord\Downloads>java -jar tika-app-1.14.jar -t
"C:\Users\gord\Documents\Goralta Invoice.doc" > "C:\Users\gord\Documents\Goralta

The next step was to get the same result on our Power Server. I ran the
following command first

JAVA CLASS('/java/Tika/tika-app-1.14.jar') PARM('-t' '/java/Tika/Goralta

It displays the text it extracted on the screen. Great. So I know the java
program is working on our system. The last step is to get the results to be
ported to a file.

I have tried many different combinations but I cannot get it to work. Here
is an example of what I have tried and the error we are getting.

JAVA CLASS('/java/Tika/tika-app-1.14.jar') PARM('-t' '"/java/Tika/Goralta
Invoice.doc" > "/java/Tika/Goralta Invoice.txt"')

Exception in thread "main" no protocol:
"/java/Tika/Goralta Invoice.doc" > "/java/Tika/Goralta In
at org.apache.tika.cli.TikaCLI.process(
at org.apache.tika.cli.TikaCLI.main(
Java program completed with exit code 1

I am not a Java programmer. We use Java tools that make things easier for
us as RPG programmers. Any help you can provide will be very much

Gordon Schneider
Trans Am Piping Products Ltd.

This is the Java Programming on and around the IBM i (JAVA400-L) mailing
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.