Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using ant to achive files

 
Ronnie Livingston
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, im trying to use a build batch file to war a bunch of files together but i keep getting this error when i try and build it:
Exception in thread "main" java.lang.NoClassDefFoundError: C:\jdk1/3/1\lib\htmlconverter/jar;
I read on another page that the directory where the class is located is not in the classpath but i double check and it is set in my enviromental variables. I also tried adding it to my build file but i still have the same error, here is my build file:
@echo off
rem build.bat -- Build Script for the "CS4B Servlet/JSP Example" Application
set TOMCAT_HOME=C:\tomcat
set JAVA_HOME=C:\jdk1.3.1
set _CP=%CP%
rem Identify the custom class path components we need
set CP=%TOMCAT_HOME%\lib\ant.jar;%TOMCAT_HOME%\lib\servlet.jar
set CP=%CP%;%TOMCAT_HOME%\lib\jaxp.jar;%TOMCAT_HOME%\lib\parser.jar
set CP=%CP%;%JAVA_HOME%\lib\tools.jar;
rem Execute ANT to perform the requird build target
java -classpath %CP%;%CLASSPATH% org.apache.tools.ant.Main -Dtomcat.home=%TOMCAT_HOME% %1 %2 %3 %4 %5 %6 %7 %8 %9
set CP=%_CP%
set _CP=
 
Ronnie Livingston
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
also, when setting env variables does the order matter in regards to which one i set first and so forth?
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question is much more suited to the Servlets and JSP forum so I am going to move it there.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic