Oracle SQL Developer
Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
Error: Java home /usr/bin/../java/bin/java is not a JDK.
Running SQL Developer under a JRE is not supported.
If this Java VM is actually a full JDK installation, add
'SetSkipJ2SDKCheck true' to one of the following files.
Otherwise specify a different Java JDK location with a
SetJavaHome directive in one of the following files:
/export/home/valen/.sqldeveloper/4.0.0/product.conf
/export/home/valen/Downloads/sqldeveloper/sqldeveloper/bin/sqldeveloper.conf
------------------------------------------------------------------------------
root@defender:~# pkg info jdk
Name: developer/java/jdk
Summary: Java(TM) Platform Standard Edition Development Kit (VERSION) java -version will display 1.6.0_65-b14
Description: The Java Platform Standard Edition Development Kit (JDK)
includes both the runtime environment (Java virtual machine, the
Java platform classes and supporting files) and development
tools (compilers, debuggers, tool libraries and other tools).
The JDK is a development environment for building applications,
applets and components that can be deployed with the Java
Platform Standard Edition Runtime Environment. java -version
will display 1.6.0_65-b14
Category: Development/Java
State: Installed
Publisher: solaris
Version: 1.6.0.65
Branch: 5.12.0.0.0.32.0
Packaging Date: October 9, 2013 01:19:11 PM
Size: 5.56 kB
FMRI: pkg://solaris/developer/java/jdk@1.6.0.65-5.12.0.0.0.32.0:20131009T131911Z
root@defender:~# java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) Server VM (build 24.45-b08, mixed mode)
root@defender:~# which java
/usr/bin/java
/usr/bin/../java/bin/java is /usr/java/bin/java
root@defender:# ls /usr
adm apr-util ddu dist games include java1.2 kvm man perl5 proc sbin spool tmp xpg4
apache2 bin demo dt gcc j2se jdk lib mysql platform pub sfw src X11 xpg6
apr ccs dict dtrace gnu java kernel mail openwin preserve sadm share sunos X11R6
root@defender:# ls /usr/java
bin COPYRIGHT jre lib man
root@defender:# ls /usr/java/bin
amd64 java jcontrol orbd policytool rmiregistry tnameserv
ControlPanel javaws keytool pack200 rmid servertool unpack200
---------------------------------------------------------------------------------------------------------
Solution:
root@defender:~# ln -s /usr/jdk/instances/jdk1.7.0/ /usr/java/bin/java
ln: cannot create /usr/java/bin/java: File exists
root@defender:~# rm -f /usr/java/bin/java
root@defender:~# ln -s /usr/jdk/instances/jdk1.7.0/ /usr/java/bin/java
root@defender:~# cd /opt
root@defender:/opt# cd sqldeveloper/
root@defender:/opt/sqldeveloper# sh sqldeveloper.sh
Oracle SQL Developer
Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
Type the full pathname of a JDK installation (or Ctrl-C to quit), the path will be stored in /export/home/valen/.sqldeveloper/4.0.0/product.conf
----------------------------------------------------------------------------------------
2.Issue:
Type the full pathname of a JDK installation (or Ctrl-C to quit), the path will be stored in /export/home/valen/.sqldeveloper/4.0.0/product.conf
/usr/jdk
Error: /usr/jdk/bin/java not found
Type the full pathname of a JDK installation (or Ctrl-C to quit), the path will be stored in /export/home/valen/.sqldeveloper/4.0.0/product.conf
/usr
Error: /usr/bin/java not found
Type the full pathname of a JDK installation (or Ctrl-C to quit), the path will be stored in /export/home/valen/.sqldeveloper/4.0.0/product.conf
/usr/java
Error: /usr/java/bin/java not found
Type the full pathname of a JDK installation (or Ctrl-C to quit), the path will be stored in /export/home/valen/.sqldeveloper/4.0.0/product.conf
--------------------------------------------------------------------------
Table of Contents
- How To install SQL Developer
- All your operation are as common user role!!!
- Pre-condition session
- Installation session
- Reference
All your operation are as common user role!!!#
Pre-condition session#
- 1. Check Java package installation status on your machine:
Run pkg info -r java
-
- If there is no java installed ,then run pkg install pkg://solaris/runtime/java
- 2. Check Java version on your machine.
- SQL Developer support at least Java 1.7.0_u51,and max version is Java 1.8.
Run java -version
-
- If output is in the valid Java version range,then go to Installation session.
-
- If output is out of the range of valid Java version,please do the following operations:
a.Download JDK from http://www.oracle.com/technetwork/java/javase/downloads/index.html
b.Unzip jdk-8u5-solaris-x64.tar.gz under /export/home/valen/Download/
c.Vi /export/home/valen/.bashrc/ file.
Add " export JAVA_HOME=/export/home/valen/Downloads/jdk1.8.0_05 "
-
- If output is an error says no java command,then do the following operation:
export JAVA_HOME=/export/home/valen/Downloads/jdk1.8.0_05;
export PATH=$JAVA_HOME/bin/amd64:/usr/sbin:/usr/bin:$PATH
Installation session#
- 1. Get SQL Developer .
- Download SQL Developer from http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html (choose other platform)
- 2. Unzip SQL Developer.
- Unzip it at anywhere,take an example at /export/home/valen/Downloads.
- 3. Run SQL Developer.
cd /export/home/valen/Downloads/sqldeveloper
sh sqldeveloper
-
- If it pops out SQL Developer GUI,then it's success.
- If it outputs an Error: Java home /usr/bin/../java/bin/java is not a JDK.
- You can create a symible link to /usr/jdk/instances/jdk1.7.0/ from /usr/java/:
Run rm -f /usr/java/ ;
ln -s /usr/jdk/instances/jdk1.7.0/ /usr/java/
-
-
-
- Note:here is rm -f,not rm -r!!!!!rm -f is to delete the link of java.rm -r is to delete the /usr/java!
- If it output the request for your input of JDK full path,you should input /export/home/valen/Downloads/jdk1.8.0_05
-
-
Reference:
http://blog.chinaunix.net/uid-29179844-id-4123621.html
http://hi.baidu.com/itnote/item/3788ee728c8e1b10d1dcb341
http://blog.sina.com.cn/s/blog_55fb522f0100ratv.html
http://blog.csdn.net/xymyeah/article/details/3435699
http://blog.csdn.net/silence_ljh/article/details/9628225
http://blog.csdn.net/guoqin863/article/details/7984663
Windows: http://blog.sina.com.cn/s/blog_53a99cf30100fgte.html