2012-04-16 16 views
9

Soy nuevo en ubuntu y tengo un problema. No puedo comenzar RubyMine 4:RubyMine en linux

[email protected]:~/RubyMine-4.0.3/bin$ java -version 
java version "1.7.0_03" 
OpenJDK Runtime Environment (IcedTea7 2.1.1pre) (7~u3-2.1.1~pre1-1ubuntu2) 
OpenJDK 64-Bit Server VM (build 22.0-b10, mixed mode) 
[email protected]:~/RubyMine-4.0.3/bin$ ./rubymine.sh 
OpenJDK Runtime Environment (IcedTea7 2.1.1pre) (7~u3-2.1.1~pre1-1ubuntu2) 
OpenJDK 64-Bit Server VM (build 22.0-b10, mixed mode) 
OpenJDK 64-Bit Server VM (build 22.0-b10, mixed mode) 
WARNING: You are launching the IDE using OpenJDK Java runtime. 

     THIS IS STRICTLY UNSUPPORTED DUE TO KNOWN PERFORMANCE AND GRAPHICS PROBLEMS! 

NOTE: If you have both Oracle (Sun) JDK and OpenJDK installed 
     please validate either RUBYMINE_JDK, JDK_HOME, or JAVA_HOME environment variable points to valid Oracle (Sun) JDK installation. 
     See http://ow.ly/6TuKQ for more info on switching default JDK. 

Press Enter to continue. 

Error: Could not find or load main class com.intellij.idea.Main 

Intenté instalar openjdk6 y tengo el mismo error. No sé lo que debo hacer.

Respuesta

13

Tuve esto recientemente yo mismo ([ERROR: cannot start RubyMine. No JDK found. JDK Version? + desktop link).

Answer: Install java and check your path:

Descargar Oracle7 JDK en:
http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html

Siga las instrucciones en:
http://www.webupd8.org/2011/09/how-to-install-oracle-java-7-jdk-in.html por ejemplo,

Después de descargar Java (arriba): extraiga el archivo Oracle Java JDK descargado en su carpeta de inicio y cambie el nombre de la carpeta recién creada a "java-7-oracle".

sudo mv its_name java-7-oracle 

instalarlo:

cd 
sudo mkdir -p /usr/lib/jvm/ #just in case 
sudo mv java-7-oracle/ /usr/lib/jvm/ 
sudo add-apt-repository ppa:nilarimogard/webupd8 
sudo apt-get update 
sudo apt-get install update-java 
sudo update-java 

Compruebe que:

java -version 
javac -version 
+0

lanzador ya no escribió sobre jdk abierto, pero aún así imprima esto: kvet @ Kvet-Notebook: ~/RubyMine-4.0.3/bin $ ./rubymine.sh Java HotSpot (TM) Servidor de 64 bits VM (construir 21.0-b17, modo mixto) Error: No se pudo encontrar o cargar la clase principal com.intellij.idea.Main – Kvet

+1

Esto funcionó correctamente en mi máquina virtual recién construida de Ubuntu 12.04. – MattSlay

+0

Eso no me ayudó (simplemente eliminó OpenJDK-Warning). Reinstalar (means & tar xfz RubyMine-4.0.3.tar.gz $ cd RubyMine-4.0.3/bin/$ ./rubymine.sh) funcionó para mí (no sé por qué). –

0

Pruebe instalar Oracle JDK y ejecute RubyMine con eso.

1

Estoy bastante seguro de que no es necesario instalar el JDK. Para que se ejecute RubyMine, todo lo que necesitas es JRE. A menos que vaya a hacer el desarrollo de Java, no necesita JDK.

Para configurar Oracle/Sun JRE en Ubuntu/Mint/Debian, siga las instrucciones aquí: https://help.ubuntu.com/community/Java#Oracle_Java_7.

Personalmente, he usado las instrucciones en la sección Script (JRE only). Específicamente, instalé JRE usando el repositorio mencionado en este sitio: http://www.duinsoft.nl/packages.php?t=en. Funciona perfectamente.

Cuestiones relacionadas