As an option, you can do a conditional in the batch file to detect
Win95/98/ME vs 2k/XP fairly easily by looking at the environment.
I have some examples if necessary, but... Who uses Win98 for Java
development anyway? :)
> -----Original Message-----
> From: Andrus Adamchik [mailto:andru..bjectstyle.org]
> Sent: Friday, February 11, 2005 1:52 PM
> To: cayenne-deve..bjectstyle.org
> Subject: Re: Out Of Environment Space on Windows 98
>
> I think we shouldn't change any of the existing scripts just
> so that they
> work on Windows 98 ... Who cares! I would simply put an entry
> in the FAQ
> explaining how to modify the existing script.
>
> Andrus
>
>
>
> > I'm finally testing Cayenne under Win98 in order to fix this issue:
> >
> > http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-99
> >
> > The patch works fine, but I hit another error.
> >
> > It turns out that Win9x only allows 256 characters by default in the
> > environment!
> >
> > Considering a minimal set of the following, that's 159 characters.
> >
> > CAYENNE_HOME=..
> > MAIN_CLASS=org.objectstyle.cayenne.modeler.Main
> > JAVACMD=%JAVA_HOME%\bin\javaw
> > DEFAULT_CLASSPATH=%CAYENNE_HOME%\lib\modeler\cayenne-modeler.jar
> >
> > You also have to add in JAVA_HOME which is going to be a minimum of
> > another 25 characters.
> >
> > So we're looking at around 184 characters JUST for
> cayenne's modeler.bat
> > file.
> >
> > That means there can't be more than 70 characters in the
> environment to
> > start with.
> > My bare-minimum fresh windows 98 install has 170 characters
> defined in
> > the environment.
> >
> > That only leaves 80 characters, provided my math is right.
> >
> > I shorted DEFAULT_CLASSPATH to DC and made it work.
> >
> > Is there a point to making this more Win9x friendly?
> > Or should we just document the problem?
> >
> > -Mike
>
>
>
>
>
This archive was generated by hypermail 2.0.0 : Fri Feb 11 2005 - 13:57:49 EST