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



Thanks Barbara...  I will give the example you provided a whirl.

Thanks,
Chad Cornelius, IIS
(720) 921-7835


-----Original Message-----
From: Barbara Morris [mailto:bmorris@xxxxxxxxxx] 
Sent: Friday, September 23, 2005 1:59 PM
To: java400-l@xxxxxxxxxxxx
Subject: Re: Starting JVM in RPG Before Making a Java Method Call

"cornelius, chad" wrote:
> 
> The classpath envvar looks as follows:
> 
>  Value . . . . . . . . . :
>
'/home/SancaXmlListener.jar:/home/axis/axis.jar:/home/axis/commons-logging.j
> ar ...

That looks ok.  Can you call a method in the jar file when you let RPG
start the JVM?  If so, are you sure your procedure to start the JVM is
picking up the CLASSPATH environment variable (correctly)?  When you
start the JVM yourself, it's up to you to set the java.class.path
property; if you want to use the CLASSPATH environment variable, you
have to do it manually.

I have started the JVM myself by calling the CreateJavaVM API when I
have jar files in my classpath and it works fine.  This is the code I'm
using: http://faq.midrange.com/data/cache/282.html.

(None of the links to the source code worked for me on the site you
posted, so I can't tell how it handles the classpath.)


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