• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

building jmeter on windows ant path problem

 
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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>
 
Author
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
This tiny ad is guaranteed to be gluten free.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic