[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to call a class in the jar?

Posted on 2007-10-08
6
Medium Priority
?
217 Views
Last Modified: 2010-03-30
I try deploying the wsdd by following command and go to the dir where axis.jar locates which contains AdminClient.java:
java org.apache.axis.client.AdminClient deploy.wsdd

But I got exception as follow:

C:\Projekte\MVNREPO\repo\axis-1_4\axis\1.4>java org.apache.axis.client.AdminClient deploy.wsdd
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/client/AdminClient

My questions:
1. How can I call it correctly?
2. If I don't goto the dir where axis.jar locates but goto the dir where deploy.wsdd locates, how can I call it?
0
Comment
Question by:chenwei
  • 4
  • 2
6 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 20034406
You need th full path to the jar in the classpath
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 20034413
(fROM THERE)

java -cp axis.jar org.apache.axis.client.AdminClient deploy.wsdd
0
 

Author Comment

by:chenwei
ID: 20034428
I understand what you mean. I did following:

1.
create AXISCLASSPATH which contains all the fullpath of the jars.

2.
Then I create CLASSPATH which has the value of %AXISCLASSPATH%.

Isn't it ok?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 86

Accepted Solution

by:
CEHJ earned 200 total points
ID: 20034500
Please post output of

echo %CLASSPATH%
0
 

Author Comment

by:chenwei
ID: 20038786
what I did is ok.

Eventhoug, thanks.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 20039279
:-)
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses
Course of the Month18 days, 20 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question