LINUX.ORG.RU

Oracle SQL Developer


0

0

Не могу понять в чем дело

Download Oracle SQL Developer RPM for Linux


(38.4 M)
To install and run:
- Ensure you have a JDK 1.5 installed, if not, download here
(click 'Download JDK 5.0 Update <xx>') (where <xx> is the latest update)
- Download the file above
- rpm -Uhv sqldeveloper-1.1.2.25.79-1.noarch.rpm
- cd sqldeveloper
- sqldeveloper

Скачал JDK 5.0 Update 11

Установил

SOZ@localhost ~]$ sudo sh /home/sashnyov/TEMP/jdk-1_5_0_11-linux-i586-rpm.bin
Sun Microsystems, Inc. Binary Code License Agreement
..............
Do you agree to the above license terms? [yes or no]
yes
Unpacking...
Checksumming...
0
0
Extracting...
UnZipSFX 5.42 of 14 January 2001, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: jdk-1_5_0_11-linux-i586.rpm
Подготовка... ########################################### [100%]
1:jdk ########################################### [100%]

Done.
[SOZ@localhost ~]$


Затем установил sqldeveloper-1.1.2.25.79-1.noarch.rpm


Запускаю


[SOZ@localhost ~]$ sqldeveloper

Oracle SQL Developer
Copyright © 2006 Oracle. All Rights Reserved.

WARNING: error instantiating 'java.util.logging.FileHandler,' referenced by handlers, class not found
java.lang.ClassNotFoundException: java.util.logging.FileHandler,
<<No stacktrace available>>
Exception during runtime initialization
java.lang.ExceptionInInitializerError
<<No stacktrace available>>
Caused by: java.lang.NullPointerException
<<No stacktrace available>>
[SOZ@localhost ~]$

★★

Прописал путь в переменной окруженияБ результат тот-же?

[SOZ@localhost ~]$ PATH=$PATH:/usr/java/jdk1.5.0_11/bin
[SOZ@localhost ~]$ echo $PATH
/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/opt/pavcl/usr/bin :/home/sashnyov/bin:/usr/bin:/usr/java/jdk1.5.0_11/bin
[SOZ@localhost ~]$ sqldeveloper

Oracle SQL Developer
Copyright (c) 2006 Oracle. All Rights Reserved.

WARNING: error instantiating 'java.util.logging.FileHandler,' referenced by handlers, class not found
java.lang.ClassNotFoundException: java.util.logging.FileHandler,
<<No stacktrace available>>
Exception during runtime initialization
java.lang.ExceptionInInitializerError
<<No stacktrace available>>
Caused by: java.lang.NullPointerException
<<No stacktrace available>>
[SOZ@localhost ~]$

Gooddy ★★
() автор топика
Ответ на: комментарий от Gooddy

Вообще мне на одном форуме ответили следущее:


SQLDeveloper is picking up the default java (probably /usr/bin/java) for your linux installation and this is probably 1.4 (or earlier).

You need to add the path to the jdk1.5 installation to the front of your PATH variable, or set JAVA_HOME to point to it before you run sqldeveloper.

Gooddy ★★
() автор топика
Ответ на: комментарий от stim

[SOZ@localhost ~]$ java -version java version "1.4.2" gij (GNU libgcj) version 4.1.1 20070105 (Red Hat 4.1.1-51)

Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[SOZ@localhost ~]$ set | grep java [SOZ@localhost ~]$

JDK 5.0 Update 11 установилась в каталог /usr/java/jdk1.5.0_11

OS Fedora Core 6

Gooddy ★★
() автор топика
Ответ на: комментарий от Gooddy

[SOZ@localhost ~]$ java -version
java version "1.4.2" gij (GNU libgcj) version 4.1.1 20070105 (Red Hat 4.1.1-51)

Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[SOZ@localhost ~]$ set | grep java
[SOZ@localhost ~]$

JDK 5.0 Update 11 установилась в каталог /usr/java/jdk1.5.0_11

OS Fedora Core 6

Gooddy ★★
() автор топика
Ответ на: комментарий от stim

в данном случае

# /usr/sbin/alternatives --install /usr/bin/java java /usr/java/jdk1.5.0_11/bin/java 2

# /usr/sbin/alternatives --config java

Выбираем 2 и жмем ентер

Еси все ок, то java -version должна показать не gij

stim
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.