You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Omar Belhaj <be...@online.no> on 2002/11/20 10:11:21 UTC
PATCH forrest.bat
Hi,
Under Windows, when executing "forrest.bat seed" on a new directory on
another drive
than the one where FORREST is installed (%FORREST_HOME%).
Execution fails with the following error:
___________________________________________________
D:\fdocs>forrest seed
Apache Forrest. Run 'forrest -projecthelp' to list options
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/tools/ant/
Main
___________________________________________________
The solution is to add the "/D" switch on the line where the command "cd"
is executed
in the forrest.bat file.
before: cd "%FORREST_HOME%\lib\endorsed"
after: cd /D "%FORREST_HOME%\lib\endorsed"
This will also work in the case where both "FORREST_HOME" and the new dir
to be seeded
are on the same drive.
--Omar