× 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.



James,
Java from RPG was not the issue. In fact, I've been doing that since
CLASS became available in RPG.
Spool files are irrelevant. It's HTML I'm transforming to PDF.

Peter

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of James Perkins
Sent: Wednesday, 6 May 2009 8:39 a.m.
To: RPG programming on the IBM i / System i
Subject: Re: Executing a jar file from RPG

So you want to invoke Java methods from RPG? If that's what you are
after
then sure you can do that.
http://tinyurl.com/cm9q28
Full URL:
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/books_web/c0
925076172.htm#HDRJAVAMETH

If you are trying to convert a spooled file to a PDF, then there are
LOADS
of solutions for that. If you are just wanting to create PDF documents
check
out PDFBox. It's an open source Java project to create PDF's.

Hope this helps.

--
James R. Perkins


On Tue, May 5, 2009 at 13:14, Peter Connell
<Peter.Connell@xxxxxxxxxxxxxxxxx
wrote:

The answer I was really looking for was, it would appear then that
there
is no knowledge of a java interface from RPG that is analogous to the
i5
JAVA cmd which permits either a class or a jar.

Previously, I have been using both the JAVA cmd via CLP and the java
-jar option via QSH with success.
Invoking using this method by referencing a jar file is obviously the
simplest technique but not necessarily the method that performs the
best. I tend to favour RPG because the job has it's own JVM.

As I suspected, I shall have to resort to digging in to the manifest
or
find other material which resolves the actual class to be referenced
in
RPG.

BTW, the product I'm testing is PD4ML, which so far seems to be a
reasonable prospect.

Thanks, Peter



-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Peter Connell
Sent: Tuesday, 5 May 2009 8:05 p.m.
To: RPG400-L@xxxxxxxxxxxx
Subject: Executing a jar file from RPG

The library website at boulder seems to be down at the mo.



Has anyone had the need to run java from RPG thru a jar file?

I have a java product for which the instruction is to launch by
running
a jar file directly as opposed to a java class.

The i5 supports this technique via the JAVA cmd which will accept
either
a class or jar.



But is there a way to implement this from RPG similar to calling the
Main method of a java class.



Peter







########################################################################
#############
This correspondence is for the named person's use only. It may contain
confidential or legally privileged information, or both. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this correspondence in error, please immediately delete
it from your system and notify the sender. You must not disclose, copy
or rely on any part of this correspondence if you are not the intended
recipient. Any views expressed in this message are those of the
individual sender, except where the sender expressly, and with
authority, states them to be the views of Veda Advantage. If you need
assistance, please contact Veda Advantage on either :- Australia
133124
or New Zealand +64 9 367 6200
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



########################################################################
#############
This correspondence is for the named person's use only. It may contain
confidential or legally privileged information, or both. No
confidentiality
or privilege is waived or lost by any mistransmission. If you receive
this
correspondence in error, please immediately delete it from your system
and
notify the sender. You must not disclose, copy or rely on any part of
this
correspondence if you are not the intended recipient. Any views
expressed in
this message are those of the individual sender, except where the
sender
expressly, and with authority, states them to be the views of Veda
Advantage. If you need assistance, please contact Veda Advantage on
either
:- Australia 133124 or New Zealand +64 9 367 6200
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.