• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

building jmeter on windows ant path problem

 
Jeff Gaer
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
Erik Hatcher
Author
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What version of Ant are you using? If you are not using Ant 1.5, please try that and let me know if you are still experiencing problems.
 
timothy zimmerman
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If it is the space in 'Program Files' that is causing the problem try enclosing the path in ""
 
Erik Hatcher
Author
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic