My usual fix for 98 is similar.   Take all the jars, copy them into a
d:\jars directory and then build the classpath:

CLASSPATH=%CLASSPATH%;d:\jars\somejar.jar
CLASSPATH=%CLASSPATH%;d:\jars\someotherjar.jar
CLASSPATH=%CLASSPATH%;d:\jars\someapachejar.jar
CLASSPATH=%CLASSPATH%;d:\jars\somedbxmljar.jar

This shortens the classpath to a bare minimum.  And "d:\jars\"
can be shortened to "d:\j\".

I usually call this setenv.bat.   I just run it before I execute
other batch files.   If the other batch files play with the
classpath then I edit out the classpath settings.

IMHO,

Mark

"David A. Swift" wrote:

> I am using Win98, because I love XML Spy and have an under-powered
> laptop, not because I love Win98 ;-)
>
> To extend DOS a bit, I use JPSoft's 4DOS command line shell - much
> more flexibility.
>
> The batch files don't seem to work for me because of a 255-character
> limit that DOS has, the LOCALCLASSPATH exceeds that when the batch
> files are used.
>
> What I did to hack a fix, was to add a few lines to the start of the
> batch file, that look for a file "D:\D\1.JAR" - if that file is not
> present, it takes each file in D:\xindice\java\lib, renames it in a
> sequence (1.jar, 2.jar, etc...) and puts it into D:\D.  Then, I build
> the CLASSPATH variable using the renamed .jar files (the original
> .jar files are untouched).  This allows me to get Xindice running
> under Win98.
>
> If anyone is interested, I can post the batch file mods later (they
> are on my laptop) - however, they are only valid for 4DOS, as I use
> their extended variables & @eval() function.  I'd bet a similar
> method could be used under vanilla DOS, though.
>
> David Swift
>
> On Wed, 13 Feb 2002 22:52:39 -0700, Kimbro Staken wrote:
>
> >Is there anyone who is running this under windows and is comfortable with
> >.bat files that could take a look at the scripts and see if they're
> >correct or can be improved?
> >
> >Kimbro Staken
> >XML Database Software, Consulting and Writing
> >http://www.xmldatabases.org/
> >
>
> Homo Sapiens: Latin for carbon-based computer DNA...

Reply via email to