Ver Mensaje Individual
  #7 (permalink)  
Antiguo 24/04/2003, 05:35
herje
 
Fecha de Ingreso: diciembre-2001
Ubicación: minime$
Mensajes: 1.673
Antigüedad: 22 años, 4 meses
Puntos: 1
Gracias Kripton, justo en eso estaba, pero veras, una vez modificado el /etc/profile, cuando arranco el /etc/profile.env no cambia, osea no lo acepta. pego aquí mi fichero /etc/profile:

******************
# /etc/profile:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/profile,v 1.15 2002/11/18 19:39:22 azarah Exp $

if [ -e "/etc/profile.env" ]
then
source /etc/profile.env
fi

#077 would be more secure, but 022 is generally quite realistic
umask 022

if [ `/usr/bin/whoami` = 'root' ]
then
if [ "$SHELL" = '/bin/bash' ] || [ "$SHELL" = '/bin/sh' ]
then
export PS1='\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]'
fi
export PATH="/bin:/sbin:/usr/bin:/usr/sbin:${ROOTPATH}"
else
if [ "$SHELL" = '/bin/bash' ] || [ "$SHELL" = '/bin/sh' ]
then
export PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]'
fi
export PATH="/bin:/usr/bin:${PATH}"

export PATH=$PATH:/opt/sun-jdk-1.4.1.02/bin
export JAVA_HOME=/opt/sun-jdk-1.4.1.02/

fi
unset ROOTPATH

if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
export INPUTRC="/etc/inputrc"
fi

**********************


Des pues de esto en /etc/profile.env, me sigue saliendo esta linea:

******************
export JAVA_HOME='/opt/blackdown-jre-1.3.1'
******************
en cambio se hago un #set me sale esto:

******************
JAVA_HOME=/opt/sun-jdk-1.4.1.02/
JRE_HOME=/opt/blackdown-jre-1.3.1
******************

Pero la cosa que al tratar de instalar el jedit me dice el siguiente error:

******************
compile:
[javac] Compiling 318 source files to /var/tmp/portage/jedit-4.1/work/jEdit
[javac] Modern compiler not found - looking for classic compiler

BUILD FAILED
file:/var/tmp/portage/jedit-4.1/work/jEdit/build.xml:32: Cannot use classic compiler, as it is not available. A common solution is to set the environment variable JAVA_HOME to your jdk directory.
******************

Por otra parte si ves en el codigo inicia la compilacion con [javac] pues bien, javac está en /opt/sun-jdk-1.4.1.02/bin/ pero si le digo:

*******************
zonalinux:/home/herje#java-config --javac
!!! javac not found
zonalinux:/home/herje#
*******************

Si quiero que me de la versión, me sale lo siguiente:

*******************
zonalinux:/home/herje#java-config --java-version
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.3.1-FCS)
Java HotSpot(TM) Client VM (build Blackdown-1.3.1-FCS, mixed mode)
zonalinux:/home/herje#
********************

Osea es como si no me reconociera el java de SUN.

No se chico, me estoy volviendo loco.
¿que estaré haciendo mal?
¿tendre que bajar el jre de SUN y desisntalar el de blackdown?

Saludos
__________________
Saludos
Herje
http://www.forodelinux.org
Hosting Gratis para proyectos libres.

Última edición por herje; 24/04/2003 a las 05:38