× 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 am looking for ideas on the simplest and hopefully best practice for using
Java in an RPG program.

Let's assume I have an application I want to send to my clients. This
application is mostly RPG, but uses a couple Java classes contained in a
coule JAR files.

I install the JAR files in the IFS.

Now, when running my application, I have to worry about:

1. If the classpath is set right
2. If the JVM is already running, meaning I can't change the classpath even
if I wanted to

The issue here is, if IBM wanted us to implement Java in our applications, I
would hope there would be some way to use a classpath like a library list.
In other words, add to it, change it, remove from it, etc. All on the fly
without having to worry if someone else wrote an application using Java that
was run before in this job.

So, looking for ideas on handling this. In a nutshell, you have a
standalone app that uses Java inside of RPG and you want to ensure the
classpath is set properly when your application runs, no matter what else
they are running or if the JVM is already running for that job.

I have a feeling the answer to the question won't be simple from what I've
read, but maybe there's something someone has figured out. I've talked with
Aaron Bartell about this, and using data queues came up with my own Java
handler job running to process things, but that seems like a lot more work
than I want to do.

Thanks a million.

Bradley V. Stone
BVSTools - www.bvstools.com
eRPG SDK - www.erpgsdk.com


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.