I had installed the apache ant and I would like to make the SMB library into a jar file together with the java/class that I had created.
I tried entering the "ant jar" into the cmd. however, I dont seem to be able to build it as I keep getting this error.
BUILD FAILED
D:\SMB_JAR_FILES\SMB Java Files\jcifs-master\build.xml:45: The following error o
ccurred while executing this line:
D:\SMB_JAR_FILES\SMB Java Files\jcifs-master\build.xml:34: The Java Servlet API
classes could not be found. These files can be
obtained from:
http://java.sun.com/products/servlet/download.html
Total time: 0 seconds
Could Someone please teach me how to fix this ? May I know if I am missing anything. Thank you.
After I had downloaded the Servlet.api
I encounter another error
dependencies:
hasServlet:
compile:
[javac] D:\SMB_JAR_FILES\SMB Java Files\jcifs-master\build.xml:57: warning:
'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to f
alse for repeatable builds
[javac] Compiling 178 source files to D:\SMB_JAR_FILES\SMB Java Files\jcifs-
master\build
BUILD FAILED
D:\SMB_JAR_FILES\SMB Java Files\jcifs-master\build.xml:57: Error running \usr\lo
cal\java5\bin\javac compiler
Total time: 0 seconds