Configurando o JAVA_HOME no arquivo .bashrc para executar o arquivo wso2.sh

0

Estou tentando configurar o wso2 seguindo este tutorial , e estou tendo alguns problemas ao configurar a variável JAVA_HOME.

Eu encontrei esta postagem definindo o caminho para o jdk , mas recebo a seguinte saída quando abro uma nova janela de terminal:

Command 'lesspipe' is available in the following places
 * /bin/lesspipe
 * /usr/bin/lesspipe
The command could not be located because '/usr/bin:/bin' is not included in the PATH environment variable.
lesspipe: command not found
Command 'dircolors' is available in '/usr/bin/dircolors'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
dircolors: command not found
Command 'ls' is available in '/bin/ls'
The command could not be located because '/bin' is not included in the PATH environment variable.
ls: command not found

Este é o meu caminho atual:

export PATH=${JAVA_HOME}/home/username/java/jdk1.8

----------------------------- UPDATE ----------------- -----------------------

export JAVA_HOME="home/username/java/jdk1.8"
export PATH=$PATH:JAVA_HOME

Agora, o arquivo bash parece funcionar bem, mas ainda recebo um erro quando tento executar o arquivo wso2server.sh, com a seguinte saída:

Error: JAVA_HOME is not defined correctly.
 CARBON cannot execute /username/java/jdk1.8/bin/java

-------------------------- ATUALIZAÇÃO -------------------- ----------------------

executando este comando para encontrar meu caminho:

readlink -f (which java)

dá:

/usr/lib/jvm/java-8-oracle/jre/bin/java

este poderia ser o caminho certo? O caminho fornecido na atualização anterior não leva ao jdk

    
por Øystein Seel 09.05.2017 / 07:46

0 respostas