Run a Java packaged inside a Jar

C

cnadella

I am new to Java and I am working on web services directly. I have a
quick question to you gurus. I want to run the command

java org.apache.axis.client.AdminClient

but i get a error saying

Exception in thread "main" java.lang.NoClassDefFoundError:
javax/xml/rpc/ServiceException


and my classpath settings are as below.

CLASSPATH=.;C:\oracle\ora91\jdbc\lib\classes12.jar;C:\oracle\ora91\BIN;C:\TIBCO\TIBRV\LIB\tibrvj.jar;C:\TIBCO\im450\java\fesi.jar;
C:\TIBCO\im450\bin;C:\Software\Mhe\applications\lib\axis.jar

Can some one please tell me what am i doing wrong here?

Thank you,

Srinivasa Nadella.
 
E

enrique

It looks like the following class:

javax/xml/rpc/ServiceException

cannot be located in any of the JARs listed in your classpath:

CLASSPATH=.;C:\oracle\ora91\jdbc\lib\classes12.jar;C:\oracle\ora91\BIN;C:\TIBCO\TIBRV\LIB\tibrvj.jar;C:\TIBCO\im450\java\fesi.jar;
C:\TIBCO\im450\bin;C:\Software\Mhe\applications\lib\axis.jar

So modify your classpath to include the JAR that includes this missing
class.
 
R

Ross Bamford

I am new to Java and I am working on web services directly. I have a
quick question to you gurus. I want to run the command

java org.apache.axis.client.AdminClient

but i get a error saying

Exception in thread "main" java.lang.NoClassDefFoundError:
javax/xml/rpc/ServiceException


and my classpath settings are as below.

CLASSPATH=.;C:\oracle\ora91\jdbc\lib\classes12.jar;C:\oracle\ora91\BIN;C:\TIBCO\TIBRV\LIB\tibrvj.jar;C:\TIBCO\im450\java\fesi.jar;
C:\TIBCO\im450\bin;C:\Software\Mhe\applications\lib\axis.jar

Can some one please tell me what am i doing wrong here?

Thank you,

Srinivasa Nadella.

This is a J2EE class, and is bundled with the WSDP too. Specifically,
you'll need to add the path to the developer pack Jars to your
classpath.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,188
Latest member
Crypto TaxSoftware

Latest Threads

Top