Or put another way, because you're using packages, the classloader is not looking for the file GetQuote.class. It's looking for the file samles\stock\GetQuote.class. This file, when specified that way, exists in the directory c:\axis-1_1\
From: Giorgos Gaganis <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Classpath? Date: Wed, 07 Apr 2004 09:27:32 +0300
Rob Chudzik wrote:
Running it from C:\axis-1_1\ did the trick!!! Thank you so much!
For my educational purposes, why do I need to run it from there?
Because java tries to load the classes from the classpath or from the current directory or a subdirectory of the current directory if you use packages.
Giorgos
Jani V�is�nen wrote:
Maybe you should try running your programme from the directory C:\axis-1_1\ if your class is in the directory C:\axis-1_1\samples\stock and you have compiled it.
Mark Leone wrote:
Forgive me for asking something really obvious, but you didn't mention it, so I'll ask. You did complie GetQuote.java, right?
From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Classpath? Date: Wed, 07 Apr 2004 05:05:54 +0000
Can anyone offer any help on what I'm pretty sure is a CLASSPATH issue? This is a re-post, and I apologize, but I'm pulling my hair out -- I've tried all sorts of classpath combinations and configurations. I thought I had everything set when I got this:
C:\axis-1_1\samples\stock>java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd Processing file deploy.wsdd <Admin>Done processing</Admin>
I thought I was good to go. But then I tried the next step and got this:
C:\axis-1_1\samples\stock>java -cp .;%AXISCLASSPATH%
samples.stock.GetQuote -lhttp://localhost:8080/axis/servlet/AxisServlet
-uuser1 -wpass1 XXX
Exception in thread "main" java.lang.NoClassDefFoundError:
samples/stock/GetQuote
Again, here are my path settings:
AXIS_HOME: c:\axis-1_1
AXIS_LIB: %AXIS_HOME%\lib
AXISCLASSPATH: %AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery.jar;%AXIS_LIB%\commons-logging.jar;%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saaj.jar;%AXIS_LIB%\log4j-1.2.8.jar;%AXIS_LIB%\mail.jar
CLASSPATH: .;C:\ServletDevel;C:\Program Files\Apache Software
Foundation\Tomcat 5.0\common\lib\servlet-api.jar;C:\Program Files\Apache
Software Foundation\Tomcat 5.0\common\endorsed\xercesImpl.jar;C:\Program
Files\Apache Software Foundation\Tomcat
5.0\common\endorsed\xmlParserAPIs.jar;%AXISCLASSPATH%;C:\axis-1_1\samples
CATALINA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 5.0
thanks,
-Rob
-- [EMAIL PROTECTED]
_________________________________________________________________
Limited-time offer: Fast, reliable MSN 9 Dial-up Internet access FREE for 2 months! http://join.msn.com/?page=dept/dialup&pgmarket=en-us&ST=1/go/onm00200361ave/direct/01/
_________________________________________________________________
Get rid of annoying pop-up ads with the new MSN Toolbar � FREE! http://toolbar.msn.com/go/onm00200414ave/direct/01/
