Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

building jmeter on windows ant path problem

 
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>
 
Author
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.
 
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
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.
 
Our first order of business must be this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic