File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes building jmeter on windows ant path problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "building jmeter on windows ant path problem" Watch "building jmeter on windows ant path problem" New topic
Author

building jmeter on windows ant path problem

Jeff Gaer
Ranch Hand

Joined: Jun 04, 2001
Posts: 99
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>


Sun Certified Java Programmer Java 2<P>Jeff Gaer
Erik Hatcher
Author
Ranch Hand

Joined: Jun 11, 2002
Posts: 111
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.


Co-author of Lucene in Action
timothy zimmerman
Ranch Hand

Joined: Jun 26, 2001
Posts: 149
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
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://aspose.com/file-tools
 
subject: building jmeter on windows ant path problem
 
Similar Threads
First time run ant problem
Startup problem - Tomcat 4.0.4 and Windows ME
Problems getting started
building jmeter on windows ant path problem
Problem in rmic - stub generation