[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems compiling CVS ozone under Windows



On Sun, 10 Sep 2000, Don Berendsen wrote:
> Thanks very much for the changes. However the 'Exception in thread "main" 
> java.lang.NoClassDefFoundError: org/apache/tools/ant/Main' still occurs 
> immediately after
> 
> count = 0, total = 61
> count = 0, total = 597
> count = 0, total = 21
> count = 0, total = 268
> count = 0, total = 123
> count = 0, total = 58
> count = 0, total = 22
> count = 0, total = 32
> count = 0, total = 18
> count = 0, total = 157
> count = 0, total = 372
> count = 0, total = 466
> 
> is displayed. Any thoughts?

Hmmm... I don't know these "count..." messages. They don't appear on Linux.

The problem is that ant.jar (and probably all the other *.jars from ozone/bin)
are not in your CLASSPATH. The ozoneEnv.bat scripts should collect all the
needed jars in OZONE_CLASSPATH. This is added to the classpath of the VM an the
ant.bat script. Please, try to output the content of the various CLASSPATH
variables on different places to find out what is missing. You may start by
adding the following 'echo' line to the ant.bat:

:runAnt
echo "%OZONE_CLASSPATH%"
%JAVACMD% -classpath "%OZONE_CLASSPATH%;%LOCALCLASSPATH%" -Dant.home="%ANT_HOME%" %ANT_OPTS% org.apache.tools.ant.Main %1 %2 %3 %4 %5 %6 %7 %8 %9


Falko
-- 
______________________________________________________________________
Falko Braeutigam                              mailto:falko@smb-tec.com
SMB GmbH                                        http://www.smb-tec.com