You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Pinar Bicioglu <pi...@hotmail.com> on 2001/06/04 19:20:10 UTC
classpath issue on Javadoc stuff!!!!
I opened a DOS window and set my classpath as below;
D:\>set
CLASSPATH=d:\Tomcat\jakarta-tomcat-3.2.2b3\lib\servlet.jar;d:\Tomcat\jakarta-tomca
t-3.2.2b\ant.jar;d:\Tomcat\jakarta-tomcat-3.2.2b3\lib\jasper.jar;d:\Tomcat\jakarta-tomcat-
3.2.2b3\lib\jaxp.jar;d:\Tomcat\jakarta-tomcat-3.2.2b3\lib\parser.jar;d:\Tomcat\jakarta-tom
cat-3.2.2b3\lib\webserver.jar;d:\ap20\websrc\WEB-INF\classes\org\apache\struts\form\Proces
sFormAction.class;d:\ap20\websrc\WEB-INF\classes\org\apache\struts\form\ValidateForm.class
So it's been set to where my jar and class files are.
I have the following code. So now again it can no find the package unlike
before when it couldn't file the javax.* ...
the code i have is :
<property name="classpath"
value="d:\Tomcat\jakarta-tomcat-3.2.2b3\lib\servlet.jar;d:\Tomcat\jakarta-tomcat-3.2.2b3\lib\parser.jar;
d:\Tomcat\jakarta-tomcat-3.2.2b3\lib\jasper.jar;d:\Tomcat\jakarta-tomcat-3.2.2b3\lib\jasp.jar;d:\Tomcat\jakarta-tomcat-3.2.2b\lib\ant.jar;
d:\Tomcat\jakarta-tomcat-3.2.2b3\lib\webserver.jar;d:\ap20\websrc\WEB-INF\classes\org\apache\struts\form\ProcessFormAction;d:\ap20\websrc\WEB-INF\classes\org\apache\struts\form\ValidateForm.class"/>
<target name="javadoc" depends="compile" >
<property name="root" value="org.apache.struts" />
<property name="src" value="d:\ap20\java" />
<javadoc sourcepath="${src}"
destdir="${javadoc.home}"
classpath="${classpath}"
packagenames="${root}.*"
author="true"
version="true"
use="true"
windowtitle="${app.name} ${version} API"
doctitle="${app.name}" />
</target>
Thanks to all in a million....
>From: Bill.J.Fellows@mail.sprint.com
>Reply-To: ant-user@jakarta.apache.org
>To: ant-user@jakarta.apache.org
>Subject: Re: Package javax.servlet.http not found in import
>Date: Mon, 4 Jun 2001 11:57:48 -0500
>
>As an add on, the JVM will pick up all class files in your classpath.
>
>So,
>if you have
>/lib/myFirst.jar
>/lib/myOther.jar
>/classes/ClassA.class
>/classes/ClassB.class
>/classes/ClassC.class
>
>To include the jars on your classpath, you must explicitly enumerate
>them with
>CLASSPATH=/lib/myFirst.jar;/lib/myOther.jar
>
>To include the non-jarred files, simply tell classpath what directory
>to look at
>CLASSPATH=/classes/
>
>/bill
>
>-----Original Message-----
>From: MikeD [mailto:MikeD@san.rr.com]
>Sent: Monday, June 04, 2001 11:51 AM
>To: ant-user
>Cc: MikeD
>Subject: Re: Package javax.servlet.http not found in import
>
>
>The JVM will not read a directory looking for JAR files. You need to
>specify each JAR file(s) inidividually in your CLASSPATH variable.
>
>/mike
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com