Set JAVA_HOME ubuntu 9.04 con OpenJdk

Hola a todos, como mi primer post nionio (notese sin enie – en otro post explicare porque), pondre algo que me sucedio recientemente, trabajando con maven me di cuenta que algo no estaba bien … trataba de buscar la libreria sun tools.jar , pero no encontraba la ruta…la razón es que con openjdk instalado no existe el tan famoso JAVA_HOME , pero bueno no faltaba mas que ponerle al bash JAVA_HOME.

Pasos:

abrir la consola y con sudo poner al final de /etc/bash.bashrc

JAVA_HOME=/usr/lib/jvm/java-6-sun
export JAVA_HOME
PATH=$PATH:$JAVA_HOME/bin
export PATH

y listo tenemos configurado ahora nuestro java correctamente, reinicia y luego prueba si esta el link…

foward@foward-laptop:~$ echo $JAVA_HOME
/usr/lib/jvm/java-6-sun
foward@foward-laptop:~$ echo $PATH
/home/foward/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/java-6-sun/bin

Saludos!!!
proximamente mas JAVA TIPS!

Tags: , ,

2 Responses to “Set JAVA_HOME ubuntu 9.04 con OpenJdk”

  1. Amy Says:
    Septiembre 20th, 2010 at 5:56 pm

    Amazing blog, bookmarked your website for interest to see more information!

  2. Kitchen Gadgets Says:
    Septiembre 25th, 2010 at 3:27 pm

    This is my first time I have visited your site. I found a lot of interesting stuff in your blog. From the tons of comments on your posts, I guess I am not the only one! keep up the good work.

Leave a Reply