× 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 think you will probably want to switch the order of those
operations... call a CL to set the CLASSPATH environment variable to
what you need it to be for your job, then start your JVM and it should
use that classpath.

        Can you switch the classpath of a JVM while it is running? I
don't think you can... maybe I am wrong.

Dan Feather
-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx
[mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of
Shane_Cessna@xxxxxxx
Sent: Monday, August 08, 2005 6:18 AM
To: Java Programming on and around the iSeries / AS400
Subject: RE: JVM and activation groups in OS/400

Barbara,

I stand corrected...Thanks for the lesson...

Larry,

I would imagine that you could start the JVM with the default classpath,

then run a CL program to set your classpath to whatever you need it to 
be...

Shane



Larry Gorlin <LGorlin@xxxxxxxxxxxxxxxxx> 
Sent by: java400-l-bounces@xxxxxxxxxxxx
08/05/2005 07:34 PM
Please respond to
Java Programming on and around the iSeries / AS400 
<java400-l@xxxxxxxxxxxx>


To
Java Programming on and around the iSeries / AS400 
<java400-l@xxxxxxxxxxxx>
cc

Subject
RE: JVM and activation groups in OS/400






Thanks Barbara. Since we're on V5R1 it looks like that's our problem. 

Now if I can figure out how to manually start a JVM maybe I can get past
this. The IBM documentation (ILE RPG Programmer's Guide) tells how to
start a JVM with the default classpath, but I've not been able to get
past that to start one with my own classpath. 

Does anyone know how to do this or know where it's documented?

Thanks,
Larry



-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx
[mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Barbara Morris
Sent: Friday, August 05, 2005 5:18 PM
To: java400-l@xxxxxxxxxxxx
Subject: Re: JVM and activation groups in OS/400

Shane_Cessna@xxxxxxx wrote:
> 
> Larry,
> 
> I'd imagine that each activation group has it's own instance of a
> JVM...when you reclaim the activation group, all resources to that are
> freed up by the system...including JVMs...
> 

No, the JVM isn't tied to any activation group.  You can access the same
JVM from a program in any activation group.

In V5R1, when any activation group ended (possibly one that never had
anything to do with the JVM), the JVM would end.  Then you could start
another JVM (usually).

Starting in V5R2, the JVM no longer ends automatically with an
activation group ending.  But once you end the JVM or it ends itself,
you can't start another JVM.


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.