
Quando tento instalar algo (que usa o InstallAnywhere) do terminal no gnome, recebi algo assim:
Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
No Java virtual machine could be found from your PATH
environment variable. You must install a VM prior to
running this program.
A solução alternativa é conectar- localhost
se ssh
ou alternar para o console ctrl+alt+f[x]
antes de iniciar a instalação.
Chamando java
da linha de comando ou whereis java
mostra os caminhos adequados.
Responder1
Você pode definir e exportar PATH e outras variáveis de ambiente no ~/.xprofile
script e tornar o Java visível para a sessão X. Você deve fazer login novamente no servidor X depois.
export PATH="$PATH:/path_to_jre/bin"
Você também pode obter o mesmo resultado modificando /etc/environment
. Você deve reiniciar depois.
PATH="...:/path_to_jre/bin"
Verifique sua variável PATH com o comando env.
env | grep PATH