It looks to me like ant is having a problem with the 'program files' directory. The class path to the db2 directories has program files in the path and it looks like that is confusing ant. Is there an easy way around this? I am not a windows guy at all.
C:\jakarta-jmeter\bin>set LOCALCLASSPATH=c:\jdk1.3.1_01\lib;C:\j2sdkee1.3\lib\j2ee.jar;.;D:\Program Files\SQLLIB\java\db2java.zip;D: \Program Files\SQLLIB\java\runtime.zip;D:\Program Files\SQLLIB\bin C:\jakarta-jmeter\bin>for %i in ("..\lib\*.jar") do CALL ..\lcp.bat %i C:\jakarta-jmeter\bin>CALL ..\lcp.bat ..\lib\ant-1.4.1.jar Exception in thread "main" java.lang.NoClassDefFoundError: Files\SQLLIB\java\db2java/zip;D:\Program C:\jakarta-jmeter\bin>
If it is the space in 'Program Files' that is causing the problem try enclosing the path in ""
Erik Hatcher
Author
Ranch Hand
Joined: Jun 11, 2002
Posts: 111
posted
0
Sorry, I missed that you are using Ant 1.4.1. If you can, please upgrade to Ant 1.5, but if not, at least upgrade to the latest ant.bat wrapper script which should fix an issue with spaces in paths.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: building jmeter on windows ant path problem