× 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'm wondering if this wouldn't have the same issues that CLASSPATH would.
If another application has already been run and uses the JAVA_HOME env.
variable, you can't keep movng your JARs around.



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

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of DeLong, Eric
Sent: Wednesday, June 11, 2008 5:23 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: RPG, Java and Classpath practices


Brad,

Isn't this what the Extension Mechanism Architecture is for? I'm
hardly a Java expert, but I believe you could simply store your
jar into the <java-home>/lib/ext directory.

If this is NOT what the /ext directory is for, please tell me
now, so I can fix a few things.... <g>

hth,
Eric

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Bradley V. Stone
Sent: Wednesday, June 11, 2008 5:03 PM
To: RPG400-L@xxxxxxxxxxxx
Subject: RPG, Java and Classpath practices


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

--
This is the RPG programming on the AS400 / iSeries (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 is the RPG programming on the AS400 / iSeries (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.