我正在尝试将Oracle SQL Devleoper
安装到Debian Linux server
。
我已经成功安装并设置了Java JDK和JRE,并将jdk路径添加到sqldeveloper.conf
文件中:
SetSkipJ2SDKCheck true
SetJavaHome /home/info/Java/jdk1.8.0_40
执行此操作后,我在运行sqldeveloper.sh
文件时收到以下消息:
Oracle SQL Developer
Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
WARNING: This product is certified on JDK 1.7.0_51. You are attempting to run on JDK 1.8.0_40. This product may not run correctly on this version of the JDK.
在您按^C
退出之前,它仍然停留在此屏幕上。然后打印以下消息:
Error: SQL Developer can't recognize the JDK version
通过运行以下命令,我确保JDK已设置并正常工作:
update-alternatives --display java
输出:
java - auto mode
link currently points to /home/info/Java/jdk1.8.0_40/bin/java
/home/info/Java/jdk1.8.0_40/bin/java - priority 100
Current 'best' version is '/home/info/Java/jdk1.8.0_40/bin/java'.
update-alternative --display javac
输出:
javac - auto mode
link currently points to /home/info/Java/jdk1.8.0_40/bin/javac
/home/info/Java/jdk1.8.0_40/bin/javac - priority 100
Current 'best' version is '/home/info/Java/jdk1.8.0_40/bin/javac'.
java -version
输出:
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
javac -version
输出:
javac 1.8.0_40
如何解决这个无法识别JDK版本的问题?
更新
我使用以下内容:
答案 0 :(得分:3)
我遇到过类似的问题一次,我可以说我丢失了几个小时,不得不删除操作系统中预定义的所有旧的/不相关的jdk并重新安装最新的jdk自己以及所有这些只是为了找出当我在第一名使用“java更新替代品”时,我犯了一些错别字。