Hey  Andrew,

Here's a bit more information on this problem. Regards-Rick

It does not work correctly on Windows XP SP2. It adds extra characters
that are not the DOS 8.3 format and even changes the name of the db
directory in the PATH to db0. The error message we get is

   Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/derby/tools/ij

The problem is the CLASSPATH set by setEmbeddedCP.bat. Once you set
DERBY_INSTALL, then run this batch file, the resulting CLASSPATH is:


CLASSPATH=C:\PROGRA~1\Java\JDK16~1.0\db0\db\lib\derby.jar;C:\PROGRA~1\Java\JDK16~1.0\db0\db\lib\derbytools.jar;.;

which you can clearly see has some strange problems in it. Somehow it
ads the directory db0 and really messes up the name of the jdk1.6.0
directory. However, if you remove that FOR statement, everything works
just fine.




Andrew McIntyre wrote:

On 8/24/06, Rick Hillegas <[EMAIL PROTECTED]> wrote:

The following line in setEmbeddedCP.bat raises errors if there are
spaces in the path identified by DERBY_HOME or DERBY_INSTALL:

@FOR %%X in ("%DERBY_HOME%") DO SET DERBY_HOME=%%~sX

Is this a known problem? I'm not a DOS expert and I don't know
understand what "%%~sX" means.


That should convert the value of DERBY_HOME to it's DOS 8.3 short form
to avoid further problems with the path containing spaces. This is
working for me on Windows 2000. What version of Windows are you using,
and what is the error you are getting?

andrew


Reply via email to