Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 76853 invoked from network); 14 Feb 2007 21:39:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Feb 2007 21:39:56 -0000 Received: (qmail 18122 invoked by uid 500); 14 Feb 2007 21:39:55 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 18108 invoked by uid 500); 14 Feb 2007 21:39:55 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 18097 invoked by uid 99); 14 Feb 2007 21:39:55 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Feb 2007 13:39:55 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of khangaonkar@gmail.com designates 64.233.184.228 as permitted sender) Received: from [64.233.184.228] (HELO wr-out-0506.google.com) (64.233.184.228) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Feb 2007 13:39:45 -0800 Received: by wr-out-0506.google.com with SMTP id 58so451351wri for ; Wed, 14 Feb 2007 13:39:24 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=acu9M36KNQs8017AgLV1Ohww9cLO++vZqz+1p2X/tWD5vyuXIX1TeQchCeo0MXyN0WMs9EKiqqkT6M3kr5ND5Z3dPujJh0CYe3m1RGXJD2bSyIMmoEOUajFvKSgG23kMjSVXGBm/nxaR8+Re74VpB63xuCcj4R8ce8lVyHr+YzE= Received: by 10.90.72.10 with SMTP id u10mr1393004aga.1171489162478; Wed, 14 Feb 2007 13:39:22 -0800 (PST) Received: by 10.90.78.6 with HTTP; Wed, 14 Feb 2007 13:39:22 -0800 (PST) Message-ID: <541aa82a0702141339l7ea81cdeo2fa08217e741ac47@mail.gmail.com> Date: Wed, 14 Feb 2007 13:39:22 -0800 From: "Manoj Khangaonkar" To: axis-user@ws.apache.org, alistair@smo.uhi.ac.uk Subject: Re: [AXIS2] java2wsdl classpath In-Reply-To: <50016.80.176.82.74.1171480079.squirrel@postlin.smo.uhi.ac.uk> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_96921_881700.1171489162438" References: <50016.80.176.82.74.1171480079.squirrel@postlin.smo.uhi.ac.uk> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_96921_881700.1171489162438 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Alistair, The -cp is a java runtime command line option. What ever you pass here is passed to the java.exe that executes the jave code. If you look in the script ( java2wsdl.sh or java2wsdl.bat) you will see that the code (1) creates something called AXIS2_CLASSPATH ( all the axis runtime jars that are required (2) append to (1) the classpath the user passed it with java2wsdl -cp (3) append the %CLASSPATH% variable If you are not familiar with how the jvm treates -cp , I would say - look at the java documentation. On windows , step 3 does not happen. There is JIRA issue open and a patch has been provided. Mj On 2/14/07, Alistair Young wrote: > > Are there any examples of setting the classpath with java2wsdl? I've > tried: > > java2wsdl.sh -cp .:/lib/test.jar -cn org.testing.Tester > > but it fails to find the classes in /lib/test.jar > > thanks, > > Alistair > > > -- > mov eax,1 > mov ebx,0 > int 80h > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-user-help@ws.apache.org > > ------=_Part_96921_881700.1171489162438 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Alistair,
 
The -cp is a java runtime command line option.
 
What ever you pass here is passed to the java.exe that executes the jave code.
 
If you look in the script ( java2wsdl.sh or java2wsdl.bat) you will see that the code
 
(1) creates something called AXIS2_CLASSPATH ( all the axis runtime jars that are required
(2) append to (1) the classpath the user passed it with java2wsdl -cp
(3) append the %CLASSPATH% variable
 
If you are not familiar with how the jvm treates -cp , I would say - look at the java documentation.
 
On windows , step 3 does not happen. There is JIRA issue open and a patch has been provided.
 
Mj

 
On 2/14/07, Alistair Young <alistair@smo.uhi.ac.uk> wrote:
Are there any examples of setting the classpath with java2wsdl? I've tried:

java2wsdl.sh -cp .:/lib/test.jar -cn org.testing.Tester

but it fails to find the classes in /lib/test.jar

thanks,

Alistair


--
mov eax,1
mov ebx,0
int 80h



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


------=_Part_96921_881700.1171489162438--