× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.





I put the Java Class CONCATPDF on our System i to concat multiple PDF
Files in a Single PDF.

With this Command it works fine

RUNJVA CLASS(CONCATPDF)
PARM('/MyDir/205877/001.pdf'
'/MyDir/205877/002.PDF'
'/MyDir/205877.PDF'
'*YES')

Java PGM

* Utility that can be used to concatenate existing PDF files.
*/
public class CONCATPDF {

public static void main(String args[]) {
if (args.length < 3) {.........................................


Now I want call this Java-Class direct from my RPG Program.

I ried to define the Java Class like this.

D*---------------------------------------------------------
D ConcatPDF PR EXTPROC(*JAVA : 'CONCATPDF'
D : 'main' )
D STATIC
D* Parameter prototype declaration for Java type: String[]
D O CLASS(*JAVA :
'java.lang.String' )
D DIM(50)
D CONST
........

Can anybody tell me how to call the Jave Class because I get an Error

RNX0301 - Java-Exception "** UNKNOWN ERROR*** Methode "main" Kennung
"([Ljava.lang.String;)V" in Class "CONCATPDF"

What am I doing wrong?

Burkhard Quindt
Zapf Gmbh
b.quindt@xxxxxxxxxxxx

ZAPF GmbH
Nuernberger Strasse 38 - 95448 Bayreuth - Telefon (09 21) 6 01-0 - Telefax (09 21) 6 01-6 77
Sitz der Gesellschaft: Bayreuth - Registergericht: AG Bayreuth HRB 3204
Geschaeftsfuehrer: Dipl. Ing. (FH) Roman Fehling - Emmanuel Thomas
info@xxxxxxxxxxxx - www.zapf-gmbh.de


RECHTSHINWEIS | Diese E-Mail enthaelt vertrauliche und/oder rechtlich
geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder
diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den
Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die
unbefugte Weitergabe dieser Mail ist nicht gestattet.

LEGAL NOTICE | This e-mail may contain confidential and/or privileged
information. If you are not the intended recipient (or have received this
e-mail in error) please notify the sender immediately and destroy this
e-mail. Any unauthorized copying, disclosure or distribution of the
material in this e-mail is strictly forbidden.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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

This mailing list archive is Copyright 1997-2024 by midrange.com 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.