Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

how to get jars scope in to my application

sandyg

2008-03-07

Replies:

Author LoginPost Reply

I am creating an jar executable file using ant

<jar destfile="dist/searchengine.jar" basedir="${build_classes}">
           <manifest>
              <attribute name="Main-Class" value="com.Test"/>
           </manifest>
        </jar>
   
   <!-- to run th jar file-->
   
     <echo message="to run th jar file ..."/>
        <java jar="dist/searchengine.jar" fork="true"/>


but i am getting the Exception in thread "main"
java.lang.NoClassDefFoundError: javax/servlet/ServletException

even all jars were in the classes folder of my jar
can anybody help me please how to get the jar file scope

--
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.