Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Web Services
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Ron McLeod
paul wheaton
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Himai Minh
Bartenders:
Forum:
Web Services
RunJavaApplication As Executable Jar
Nabeel Ahmad
Greenhorn
Posts: 1
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi all
I have an
java
application running fine in Eclipse.But when i try to run application as .jar in console i am getting the following excepti
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/rpc/Service Exception Caused by: java.lang.ClassNotFoundException: javax.xml.rpc.ServiceException at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) Could not find the main class: com.wateen.cvp.test.CRMServTest. Program will exit. All the jar file are added to class path and MANIFEST file. <classpath> <classpathentry kind="src" path="src"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="lib" path="lib/baseapi.jar"/> <classpathentry kind="lib" path="lib/log4j-1.2.15.jar"/> <classpathentry kind="lib" path="lib/ojdbc14.jar"/> <classpathentry kind="lib" path="lib/commons-dbcp-1.2.2.jar"/> <classpathentry kind="lib" path="lib/commons-pool-1.3.jar"/> <classpathentry kind="lib" path="lib/AudiumXML1.0.jar"/> <classpathentry kind="lib" path="lib/framework.jar"/> <classpathentry kind="lib" path="lib/dbcp.jar"/> <classpathentry kind="lib" path="lib/axis.jar"/> <classpathentry kind="lib" path="lib/jaxrpc.jar"/> <classpathentry kind="lib" path="lib/commons-logging-1.0.4.jar"/> <classpathentry kind="lib" path="lib/commons-discovery-0.2.jar"/> <classpathentry kind="lib" path="lib/saaj.jar"/> <classpathentry kind="lib" path="lib/wsdl4j-1.5.1.jar"/> <classpathentry kind="lib" path="lib/servlet2.3.jar"/> <classpathentry kind="lib" path="lib/activation.jar"/> <classpathentry kind="lib" path="lib/mail.jar"/> <classpathentry kind="output" path="bin"/> </classpath> Manifest-Version: 1.0 Ant-Version: Apache Ant 1.7.0 Created-By: 1.5.0_11-b03 (Sun Microsystems Inc.) Main-Class: com.wateen.cvp.test.CRMServTest Class-Path: activation.jar mail.jar commons-httpclient-3.0.1.jar commo ns-dbcp-1.2.2.jar commons-pool-1.3.jar log4j-1.2.15.jar ojdbc14.jar a xis.jar commons-discovery-0.2.jar commons-logging-1.0.4.jar jaxrpc.ja r saaj.jar servlet2.3.jar wsdl4j-1.5.1.jar
Any help.How to solve this problem.
sam ky
Ranch Hand
Posts: 104
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello,
Welcome to Javaranch!!
Regarding your problem, you have used wrong syntax for specifying Main-Class in Manifest file. Update it with below.
Main-Class: com/wateen/cvp/test/CRMServTest
Thanks,
Sammaiah
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
help apache axis
Is this wsdl somehow wrong?
can't generate java from wsdl file please help!
Axis 1.4 Deployment on Websphere5.1 issue
Problem in running Fibonacci Web Service Example
More...