Hi,

if every piece of information is correct, than I guess the problem is that
in the bashrc file is the following:
export JAVA_HOME=/user/lib/jvm/java-6-sun
export PATH=$PATH:/user/lib/jvm/java-6-sun/bin

and JAVA_HOME begins with /user and not /usr as in the following responses
and try-outs.

Hope that helps,
Balazs

2009/9/9 Babak Shafian <[email protected]>

>
>
>
> > To: [email protected]
> > From: [email protected]
> > Subject: RE: JAVA_HOME is not defined correctly!
> > Date: Wed, 9 Sep 2009 12:20:19 +0200
> >
> > Babak Shafian wrote at Dienstag, 8. September 2009 17:59:
> >
> > >
> > > Thanks for the quick response!
> > >
> > >>did you try to run java -version ??>
> > >
> > > Yes I tried and I get :
> > >
> > > java version "1.6.0_14"
> > > Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
> > > Java HotSpot(TM) 64-Bit Server VM (build 14.0-b16, mixed mode)
> > >
> > >
> > >> it seems, that JAVA_HOME is set correctly, at least maven complains
> that
> > >> it cannot run /user/lib/jvm/java-6-sun/bin/java, while it has the
> > >> directory info apparently from JAVA_HOME. What happens if you want to
> > >> execute /user/lib/jvm/java-6-sun/bin/java from the shell directly?
> > >>
> > >
> > > After executing that(if I understood you correctly) I get actually
> nothing
> > > special:
> > >
> > > r...@ubuntu-jaunty-amd64-webtv:/usr/lib/jvm/java-6-sun/bin# java
> >
> > This does not mean that you have actually executed the java in that
> > directory. You have to call ./java for that.
> >
> > Therefore this is useless:
> >
> > > Usage: java [-options] class [args...]
> > >            (to execute a class)
> > >    or  java [-options] -jar jarfile [args...]
> > >            (to execute a jar file)
>
> After executing r...@ubuntu-jaunty-amd64-webtv:/usr/lib/jvm/java-6-sun/bin#
> ./java
> I get the exact output :
>
> Usage: java [-options] class [args...]
>           (to execute a class)
>   or  java [-options] -jar jarfile [args...]
>           (to execute a jar file)
>
> Or do I miss a point?
>
> _________________________________________________________________
> With Windows Live, you can organize, edit, and share your photos.
>
> http://www.microsoft.com/middleeast/windows/windowslive/products/photo-gallery-edit.aspx
>

Reply via email to