You DO need the JDK, not the JRE for some operations --- Thank You…
Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring & Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://baselogic.com Linked IN: http://linkedin.com/in/mickknutson Vacation Rental: http://tahoe.baselogic.com --- On Tue, Sep 8, 2009 at 12:08 PM, Wes Wannemacher <[email protected]> wrote: > Does maven require a JDK and you are running a JRE? > > I'm running a basic "stock" install of Ubuntu Jaunty and haven't had > any problems running maven. > > -Wes > > On Tue, Sep 8, 2009 at 11:59 AM, Babak Shafian<[email protected]> > wrote: > > > > 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 > > > > Usage: java [-options] class [args...] > > (to execute a class) > > or java [-options] -jar jarfile [args...] > > (to execute a jar file) > > > > > > > >> > >> > -----Original Message----- > >> > From: Babak Shafian [mailto:[email protected]] > >> > Sent: Tuesday, September 08, 2009 5:17 PM > >> > To: [email protected] > >> > Subject: JAVA_HOME is not defined correctly! > >> > > >> > > >> > Hi Volks, > >> > > >> > just installed Maven with Ubuntu. After typing mvn --version I get the > >> > following message: > >> > > >> > Error: JAVA_HOME is not defined correctly. > >> > We cannot execute /user/lib/jvm/java-6-sun/bin/java > >> > > >> > And I'm pretty sure that the JAVA_HOME is correctly set in > etc/bash.bashrc: > >> > > >> > export JAVA_HOME=/user/lib/jvm/java-6-sun > >> > export PATH=$PATH:/user/lib/jvm/java-6-sun/bin > >> > > >> > Do you have any idea what could be the problem?? > >> > BTW. I've searched through google and archives! > >> > > >> > Thanks in advance > >> > Babak > >> > > >> > > >> > > >> > _________________________________________________________________ > >> > With Windows Live, you can organize, edit, and share your photos. > >> > > http://www.microsoft.com/middleeast/windows/windowslive/products/photo- > >> > gallery-edit.aspx > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [email protected] > >> For additional commands, e-mail: [email protected] > >> > > > > _________________________________________________________________ > > More than messages–check out the rest of the Windows Live™. > > http://www.microsoft.com/windows/windowslive/ > > > > -- > Wes Wannemacher > > Head Engineer, WanTii, Inc. > Need Training? Struts, Spring, Maven, Tomcat... > Ask me for a quote! > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
