You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Amila Serasinghe <am...@yahoo.com> on 2008/08/17 18:02:08 UTC

Fw: Setting JAVA_HOME variable




----- Forwarded Message ----
From: Amila Serasinghe <am...@yahoo.com>
To: axis-user-subscribe@ws.apache.org
Sent: Sunday, August 17, 2008 7:16:36 PM
Subject: Fw: Setting JAVA_HOME variable






----- Forwarded Message ----
From: Amila Serasinghe <am...@yahoo.com>
To: axis-user-subscribe@ws.apache.org
Sent: Sunday, August 17, 2008 6:12:49 PM
Subject: Setting JAVA_HOME variable


I am newbie to AXIS2. I started to go through the tutorial guide. I am working on ubuntu. When 
I run the command

 sudo $AXIS2_HOME/bin/java2wsdl.sh -cp . -cn samples.quickstart.service.pojo.StockQuoteService -of StockQuoteService.wsdl

It says  You must set the JAVA_HOME variable before running Axis2 Script.

But I have set the JAVA_HOME in bashrc and etc/ environment

                   my bashrc file
JAVA_HOME=/home/amila/programes/jdk1.6.0_06
export PATH=$PATH:$JAVA_HOME/bin

AXIS2_HOME=/home/amila/programes/axis2-1.4
export PATH=$PATH:$AXIS2_HOME/bin

                       my /etc/environment file
JAVA_HOME="/home/amila/programes/jdk1.6.0_06"

I can't figure out what to do. Please help. I thank you in advance.


      

Re: Fw: Setting JAVA_HOME variable

Posted by "Christoph M. Pflügler" <ch...@heigl-service.de>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Amila,

as far as I know, you loose your environment when executing something as
superuser (sudo).

You could try something like:

sudo JAVA_HOME="/home/amila/programes/jdk1.6.0_06" java2wsdl.sh -cp .
- -cn samples.quickstart.service.pojo.StockQuoteService -of
StockQuoteService.wsdl

Christoph


Amila Serasinghe schrieb:
> 
> 
> 
> ----- Forwarded Message ----
> From: Amila Serasinghe <am...@yahoo.com>
> To: axis-user-subscribe@ws.apache.org
> Sent: Sunday, August 17, 2008 7:16:36 PM
> Subject: Fw: Setting JAVA_HOME variable
> 
> 
> 
> ----- Forwarded Message ----
> From: Amila Serasinghe <am...@yahoo.com>
> To: axis-user-subscribe@ws.apache.org
> Sent: Sunday, August 17, 2008 6:12:49 PM
> Subject: Setting JAVA_HOME variable
> 
> I am newbie to AXIS2. I started to go through the tutorial guide. I am
> working on ubuntu. When
> I run the command
> 
>  sudo $AXIS2_HOME/bin/java2wsdl.sh -cp . -cn
> samples.quickstart.service.pojo.StockQuoteService -of StockQuoteService.wsdl
> 
> It says  You must set the JAVA_HOME variable before running Axis2 Script.
> 
> But I have set the JAVA_HOME in bashrc and etc/ environment
> 
>                    my bashrc file
> JAVA_HOME=/home/amila/programes/jdk1.6.0_06
> export PATH=$PATH:$JAVA_HOME/bin
> 
> AXIS2_HOME=/home/amila/programes/axis2-1.4
> export PATH=$PATH:$AXIS2_HOME/bin
> 
>                        my /etc/environment file
> JAVA_HOME="/home/amila/programes/jdk1.6.0_06"
> 
> I can't figure out what to do. Please help. I thank you in advance.
> 
> 
> 
> 
> 
> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIqHEa0Do4wUHmzBsRAhqQAKCwA7ciOMo5dhiszaGLZrjy5wQ5AQCgnClM
kX0OJwSS/HKmQyyq4Y5EjaE=
=YY0H
-----END PGP SIGNATURE-----

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


Re: Fw: Setting JAVA_HOME variable

Posted by Sukma Agung Verdianto <sa...@gmail.com>.
Hi Amila,
Make sure you have your JAVA_HOME setup properly by running
# echo $JAVA_HOME
from your command line interface.
If t does not print your JDK path, then there might be something wrong with
your JAVA_HOME env setting

And also, try to put JAVA_HOME env variable into ~/.bash_profile instead.

Regards,
Sukma

On Sun, Aug 17, 2008 at 11:02 PM, Amila Serasinghe <am...@yahoo.com>wrote:

>
>
> ----- Forwarded Message ----
> From: Amila Serasinghe <am...@yahoo.com>
> To: axis-user-subscribe@ws.apache.org
> Sent: Sunday, August 17, 2008 7:16:36 PM
> Subject: Fw: Setting JAVA_HOME variable
>
>
>
> ----- Forwarded Message ----
> From: Amila Serasinghe <am...@yahoo.com>
> To: axis-user-subscribe@ws.apache.org
> Sent: Sunday, August 17, 2008 6:12:49 PM
> Subject: Setting JAVA_HOME variable
>
> I am newbie to AXIS2. I started to go through the tutorial guide. I am
> working on ubuntu. When
> I run the command
>
>  sudo $AXIS2_HOME/bin/java2wsdl.sh -cp . -cn
> samples.quickstart.service.pojo.StockQuoteService -of StockQuoteService.wsdl
>
> It says  You must set the JAVA_HOME variable before running Axis2 Script.
>
> But I have set the JAVA_HOME in bashrc and etc/ environment
>
>                    my bashrc file
> JAVA_HOME=/home/amila/programes/jdk1.6.0_06
> export PATH=$PATH:$JAVA_HOME/bin
>
> AXIS2_HOME=/home/amila/programes/axis2-1.4
> export PATH=$PATH:$AXIS2_HOME/bin
>
>                        my /etc/environment file
> JAVA_HOME="/home/amila/programes/jdk1.6.0_06"
>
> I can't figure out what to do. Please help. I thank you in advance.
>
>
>
>
>
>
>
>