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



Terry,

I started out putting a lot of stuff in the ext directory, but got in trouble
when some of my classes conflicted with classes IBM needed. I also set the
CLASSPATH environment variable which made it easy to include multiple
directories as a one time operation so that they are available to any java
program (either system wide or for the current user). There are also java
properties files you can create. I believe these should also work at the
system or user level. A quick search brought up this page
http://publib.boulder.ibm.com/iseries/v5r2/ic2924/index.htm?info/rzaha/classpth.htm.
I know there's a lot more info out there because I've been around this
merry-go-round a couple of times.

I'm not sure if these methods work using the runjva command, I've always called
a q-shell command from a cl when necessary.

Josh

-----Original Message-----
From: java400-l-bounces+jdiggs=finewire.com@xxxxxxxxxxxx
[mailto:java400-l-bounces+jdiggs=finewire.com@xxxxxxxxxxxx]On Behalf Of
Beeson, Terry
Sent: Wednesday, May 09, 2007 7:46 AM
To: Java Programming on and around the iSeries / AS400
Subject: RE: RUNJVA - there must be an easier way...


We're not putting our stuff in jars yet, but that's something I've been
mulling over.

What are other people doing? Are they sticking all their jars in one or
two folders, and adding those folders to the *SYS classpath?

I haven't quite got my head around the properties, and where they fit in
at runtime.


-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx
[mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of David Gibbs
Sent: 09 May 2007 15:18
To: Java Programming on and around the iSeries / AS400
Subject: Re: RUNJVA - there must be an easier way...

Beeson, Terry wrote:
When running a java on the AS400, I have to tell the JVM where my
class
is. So far I've figured out I can do that by either adding
/home/terry/MyProj to my classpath, or by specifying the classpath
myself during submission.
Neither of these options is particularly attractive as our list of
projects increases.

Well, you always have to tell the JVM where your classes are ... just
like a library list on the System i.

Are you putting your classes in a jar file? That will keep all the
classes in one place that's easy to move around when necessary.

david


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.