For java client side work, if you are using any jars or libraries that are not part of
the standard JDK libraries, you have to set a classpath. I usually make a simple
batch file for the current project I'm on to set up my environment, that way I don't have
to add it to the command line, which usually gets pretty long itself anyway. Or I just
do it all in Ant.
- David
| "Paolo Paganotto" <[EMAIL PROTECTED]>
10/29/2002 01:43 AM
|
To: <[EMAIL PROTECTED]> cc: Subject: Re: Axis 1.0 Tomcat 4.1.12 Java 1.4.0_02 Installation tips |
> > Another thing I noticed is that if you provide some incorrect path in
the
> > CLASSPATH variable, even if you correct it by editing it it is likely
that
> > the new path aren't correctly recognised.
> > So it is necessary to startup the machine again or to delete and provide
> the
> > CLASSPATH variable again. Ignoring this (like me in the past) can make
> > people waste a lot of time.
>
> That's why I dont recommend messing with classpaths. I run java with an
> empty CLASSPATH variable, and my life is better for it.
>
> I recommend you put the jars containing javax.* code (jax-rpc, saaj,
> xerces) in the CATALINA_HOME/common/lib, where they all get picked up
> properly. The happyaxis.jsp page says exactly the same thing.
>
>
> ==>Ok, thank you. But how can I launch commands such as
java org.apache.axis.wsdl.Java2WSDL -o ...... [classname] without having the
classpath value of [classname] in the CLASSPATH
environment variable?
In other words, I tried to specify the classpath in this way:
java org.apache.axis.wsdl.Java2WSDL -o ......-cp [classpath] [classname]
obtaining an error, since -cp is not this way recognised
as an option of the Java.exe command but instead an
org.apache.axis.wsdl.Java2WSDL incorrect one.
What's wrong in that? How can I avoid to set the classpath environment
variable?
Thank you very much in advance,
:P:
