+ Responder ao Tópico



  1. #1
    antoniosales
    Visitante

    Padrão Configurar Java

    Boa tarde,
    estou usando mandriva 2006 e baixei e instalei o pacote j2sdk-1_4_2_12-linux-i586-rpm.bin, execultei igual a um script que encontrei na internet. http://www.vivaolinux.com.br/artigos...hp?codigo=240#
    Dentro do /etc/bashrc fiz a alteração que segue abaixo, pois dentro do /etc/profile não adiantou nada. Gostaria de saber oq tá faltando nesse script, pos quero vê a webcam no mercury ele da um erro de falta de fonte JMF e quando envio um wink tambem não aparece nada. Antes que alguem me pergute pq não usar o aMsn, é pq aqui é uma sala de aula e tem muita gente baixando emoticons pornograficos.


    # /etc/bashrc

    # System wide functions and aliases
    # Environment stuff goes in /etc/profile

    # by default, we want this to get set.
    # Even for non-interactive, non-login shells.
    if [ "`id -gn`" = "`id -un`" -a `id -u` -gt 99 ]; then
    umask 002
    else
    umask 022
    fi

    # are we an interactive shell?
    if [ "$PS1" ]; then
    case $TERM in
    xterm*)
    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
    ;;
    *)
    ;;
    esac
    [ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h \W]\\$ "

    if [ -z "$loginsh" ]; then # We're not a login shell
    # Not all scripts in profile.d are compatible with other shells
    # TODO: make the scripts compatible or check the running shell by
    # themselves.
    if [ -n "${BASH_VERSION}${KSH_VERSION}${ZSH_VERSION}" ]; then
    for i in /etc/profile.d/*.sh; do
    if [ -x $i ]; then
    . $i
    fi
    done
    fi
    fi
    fi
    JAVA_HOME=/usr/java/j2sdk1.4.2_12
    export JAVA_HOME
    PATH=$PATH:$JAVA_HOME/bin
    export PATH
    unset loginsh

  2. #2
    disantos
    Visitante

    Padrão Re: Configurar Java

    Olá antoniosales, tudo bem?

    Sete primeiro as informações, em seguida, exporte-as:

    Código :
    JAVA_HOME=/usr/java/j2sdk1.4.2_12
    PATH=$PATH:$JAVA_HOME/bin
    export PATH JAVA_HOME

    Você terá também de definir o CLASSPATH do mesmo, tá?


    Segue abaixo dois links que acho que poderão te ajudar nessa questão, ok?


    http://www.guj.com.br/java.tutorial.artigo.14.1.guj

    http://www.javafree.org/javabb/viewtopic.jbb?t=849869


    Abraços e espero ter ajudado! =)