Hi Bill

----- Original Message -----
From: "Parker-Combes, William CECOM LRC LEO"
<[EMAIL PROTECTED]>


> The cp.bat file I received with dom4j-1.1.zip needs to be modified.
>
> The cp.bat file has one line:
> set CP=%CD%\%1;%CP%
>
> This does not work in windows for classpath references. In windows
starting
> the relative path with a slash will start you at the root of the drive
> you're on, rather than look for a sub-directory of that name from your
> current location. An echo of %CP% shows:
>
> D:\JAVA\dom4j-1.1>echo %CP%
> build\classes;c:\jdk1.3.1\lib\tools.jar;\lib\PULLPA~1.JAR;\lib\JAXP.JAR;
>
\lib\JUNIT.JAR;\lib\CRIMSON.JAR;\lib\OPTIONAL.JAR;\lib\SAXPATH.JAR;\lib\ANT.
> JAR;
> \lib\TIDY.JAR;\lib\XALAN.JAR;\lib\MSV.JAR;\lib\XMLDB.JAR;\lib\JAXEN.JAR;


It looks like the %CD% doesn't work for you. %CD% is meant to create the
current directory. Which version of windows are you using?


> The backslash should be removed to work effectively:
> set CP=%CD%%1;%CP%

That doesn't work for me, since %CD% gets added without the '\'. so rather
than c:\dom4j\lib\foo.jar I get c:\dom4jlib\foo.jar.

Maybe just disabling the 'absolute path' mechanism using %CD% might be
better...

set CP=%1;%CP%

This is how it used to be as it happens.

> P.S. dom4j is just the solution I've been looking for, and so far it's
> working fine.

Great! I'm very glad to hear it.

James

>
> Bill Parker-Combes
> CECOM LRC LEO
> Computer Science Specialist
> Work:  732-532-5391
> DSN:  992-5391
> Fax:  732-532-3421
> [EMAIL PROTECTED]
>
> _______________________________________________
> dom4j-dev mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dom4j-dev
>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to