Instalar java runtime enviroment, java development kit y groovy

5 08 2011

Descargar java jdk y jre de la web oficial, www.java.com
Descargar ant de de la página oficial http://ant.apache.org/

Descomprimir en /opt/java

Crear los enlaces simbólicos:
# ln -s /opt/java/jre1.6.0_26/ /usr/local/java/jre
# ln -s /opt/java/jdk1.6.0_26/ /usr/local/java/jdk
# ln -s /opt/ant/apache-ant-1.8.2/ /usr/local/ant

Agragar los directorios al PATH:
# vi /etc/profile
JAVA_HOME=/usr/local/java/jdk/
ANT_HOME=/usr/local/ant
GROOVY_HOME=/usr/local/groovy
PATH=$PATH:/usr/local/java/jre/bin:$JAVA_HOME/bin:$ANT_HOME/bin:$GROOVY_HOME/bin
export JAVA_HOME PATH ANT_HOME GROOVY_HOME

Cargar las nuevas variables:
# source /etc/profile

Listo, ya está todo, podemos probarlo si sale bien lo siguiente:
# java -version
# groovysh

Advertisements

Actions

Information

One response

20 02 2013
Duverney

muy bueno gracias

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




%d bloggers like this: