× 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 figured I might end up in QSH. This is an interesting approach. I'll have to figure out how to leverage it. The Java program is actually called from RPG so I was using CL to set the CLASSPATH there. However, there might be some way to handle it this way.

Thanks.

Pete

On 4/23/2010 8:08 PM, Narayanan R Pillai wrote:
Hi Pete,

After trying every trick in the book, including shortening directory
names and jars, we finally settled on using QSH:

1. We created an additional directory under our main directory (
<RootDirectoryname> ), which we called lib
2. We created a shell script called runxxx.sh like this:

CLASSPATH=<RootDirectoryName>

for file in
<RootDirectoryName>/lib/*.jar
do

CLASSPATH=$CLASSPATH:$file;

done;

echo
$CLASSPATH;

java -cp $CLASSPATH -Djava.version=1.5 com.mycompany.myproject.MainClass

We then changed out the RUNJVA command for a QSH command. to run this
shell script instead.

Narayanan Pillai



Pete Helgren wrote:
Any idea of how to set a classpath in CL greater than a 1024
characters? I tried ADDENVVAR but it is limited to 1024 characters. I
thought I had seen a post in the past but a search of the archives
didn't turn up a solution.

Don't ask why the classpath is so long...sigh...

Pete



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.