Em 7 de dezembro de 2011 23:39, Reinaldo <tiraduvidasce...@yahoo.com>escreveu:
> Pessoal, tentei instalar o Java RE da página do Java usando os comandos > que eles aconselham. Mas não deu > certo porque como não sei a senha do superusuário (su), não consigo fazer > o arquivo tornar executável ... > > Eu até criei uma pasta /usr/java no Ubuntu 11.10 e copiei esse arquivo > para lá, mas não rolou ... > > Nesse caso é necessário ter a senha do su ? Se afirmativo, como posso > saber a senha ? (Como criá-la ou > modificá-la ?) > > > Tem algum outro jeito para instalar o java jre ? > > Reinaldo, o Ubuntu já vem com uma versão comunitária do Java, o OpenJDK, que você pode usar, hoje em dia, na maioria absoluta das situações. E na verdade, muito pouca coisa você vai precisar baixar e instalar manualmente, como no outro sistema operacional. No Ubuntu, tudo o que você precisa já está pronto para ser instalado, seja pelo terminal, seja pelo Gerenciador de Pacotes ou Central de Programas. Primeiro, verifique se o OpenJDK já não está instalado; digitar no terminal java -version deve retornar algo como java version "1.6.0_23" OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b23~pre11-0ubuntu1.11.10) OpenJDK Client VM (build 20.0-b11, mixed mode, sharing) Se não retornar nada parecido,para instala-lo, no terminal, digite sudo apt-get install openjdk6-jre icedtea-plugin. Rode novamente o comando java -version e veja se foi instalado corretamente. Valeu. > Reinaldo. > > Procedimento do site: > http://www.java.com/en/download/help/linux_install.xml#selfextracting > > To install the Linux (self-extracting) file > Follow these instructions: > 1. Change the permission of the file you downloaded to be > executable. Type: > chmod a+x jre-6u<version>-linux-i586.bin > 2. Verify that you have permission to execute the file. Type: > ls -l > > 1. Change to the directory in which you want to install. Type: > cd <directory path name> > For example, to install the software in the /usr/java/ directory, Type: > cd /usr/java/ > > Note about root access: To install Java in a system-wide location such as > /usr/local, you must > login as the root user to gain the necessary permissions. If you do not > have root access, install the Java in your home directory or a > subdirectory for which you have write permissions. 1. Run the > self-extracting binary Type: > ./jre-7u<version>-linux-i586.bin > > The license agreement is displayed. Review the agreement. Press the > spacebar to display the next page. At the end, enter yes to proceed with > the installation. > > > 2. Java is installed into its own directory. In this example, it is > installed in the /usr/java/jre1.7.0_<version> directory. When the > installation has completed, you will see the word Done. > > > 1. Verify that the jre1.7.0_<version> sub-directory is listed under > the current directory. Type: > ls > The installation is now complete. Skip to the Enable and Configure section. > -- > Mais sobre o Ubuntu em português: http://www.ubuntu-br.org/comece > > Lista de discussão Ubuntu Brasil > Histórico, descadastramento e outras opções: > https://lists.ubuntu.com/mailman/listinfo/ubuntu-br > João Santana -- Mais sobre o Ubuntu em português: http://www.ubuntu-br.org/comece Lista de discussão Ubuntu Brasil Histórico, descadastramento e outras opções: https://lists.ubuntu.com/mailman/listinfo/ubuntu-br