Para poder instalarla en Ubuntu Edgy, una vez bajado desde la página (ya pondré como), hay que hacer una serie de pasos:
- Modificar el fichero ./sqldevelper/jdev/bin/sqldeveloper.conf
Donde pone "IncludeConfFile ide.conf" cambiarla por "IncludeConfFile ./ide.conf" - Modificar el fichero ./sqldevelper/jdev/bin/ide.conf
Donde pone "IncludeConfFile ./jdk.conf" cambiarla por "IncludeConfFile ./jdk.conf" - Ejecutar sqldeveloper
spm@amd64:~/programas/sqldeveloper$ sh sqldeveloper
Oracle SQL Developer 1.0
Copyright (c) 2005 Oracle Corporation. All Rights Reserved.
Type the full pathname of a J2SE installation (or Ctrl-C to quit), the path will be stored in ~/.sqldeveloper_jdk - Ahora nos está preguntando donde está instalado Java, para averiguarlo, en otra terminal ejecutamos:
spm@amd64:~$ sudo update-alternatives --config java
There are 3 alternatives which provide `java'.
Selection Alternative
-----------------------------------------------
1 /usr/bin/gij-wrapper-4.1
+ 2 /usr/lib/jvm/java-gcj/jre/bin/java
* 3 /usr/lib/jvm/java-1.5.0-sun/jre/bin/java
Press enter to keep the default[*], or type selection number:
Como vemos nuestro Java está en /usr/lib/jvm/java-1.5.0-sun/jre/bin/java - Copiamos y pegamos la ruta de Java en el terminal donde estabamos ejecutando sqldeveloper, pero le quitamos el final "/bin/java" ya que el propio sqldeveloper se lo agrega él. Total que nos quedará:
spm@amd64:~/programas/sqldeveloper$ sh sqldeveloper
Oracle SQL Developer 1.0
Copyright (c) 2005 Oracle Corporation. All Rights Reserved.
Type the full pathname of a J2SE installation (or Ctrl-C to quit), the path will be stored in ~/.sqldeveloper_jdk
/usr/lib/jvm/java-1.5.0-sun/jre
Error: Java home /usr/lib/jvm/java-1.5.0-sun/jre/bin/java is not a J2SE SDK.
Running Oracle SQL Developer 1.0 under a JRE is not supported.
If the Java VM specified by the SetJavaHome is actually a full J2SDK installation
then add 'SetSkipJ2SDKCheck true' to /home/spm/programas/sqldeveloper/jdev/bin/sqldeveloper.conf
spm@amd64:~/programas/sqldeveloper$ - Modificar el fichero ./sqldevelper/jdev/bin/sqldeveloper.conf
Añadir al final "SetSkipJ2SDKCheck true" como nos estaba indicando antes "If the Java VM..." - Ejecutar finalmente sqldeveloper:
spm@amd64:~/programas/sqldeveloper$ sh sqldeveloper
1 comentario:
Hola. Yo ya tenía el java instalado (el de sun) y edgy eft, y no he tenido que hacer todo eso.
De forma idéntica al sqlplus, me he bajado un rpm, le he pasado el alien, dpkg -i y ya está.
Por cierto... ¿dónde dices 'como' bajarte el sqldeveloper?
Publicar un comentario