jvm OpenJDK 64位服务器VM警告:选项-Xverify:none和-novirify在JDK 13中已过时

m4pnthwp  于 2022-11-07  发布在  其他
关注(0)|答案(1)|浏览(344)

我尝试在ubuntu中安装sqldev工具,但我遇到了许多问题,即使我有jdk java-17-openjdk-amd 64也安装了java,终端中显示错误消息:

Oracle SQL Developer
Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved.

OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-17-openjdk-amd64/lib/libawt_xawt.so
    at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2393)
    at java.base/java.lang.Runtime.load0(Runtime.java:755)
    at java.base/java.lang.System.load(System.java:1953)
    at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
    at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:384)
    at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:228)
    at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:170)
    at java.base/jdk.internal.loader.NativeLibraries.findFromPaths(NativeLibraries.java:311)
    at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:281)
    at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2398)
    at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:818)
    at java.base/java.lang.System.loadLibrary(System.java:1989)
    at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:1392)
    at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:1390)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
    at java.desktop/java.awt.Toolkit.loadLibraries(Toolkit.java:1389)
    at java.desktop/java.awt.Toolkit.initStatic(Toolkit.java:1427)
    at java.desktop/java.awt.Toolkit.<clinit>(Toolkit.java:1401)
    at java.desktop/java.awt.Component.<clinit>(Component.java:624)
    at oracle.ide.osgi.boot.LauncherUtil.verifyJdkVersion(LauncherUtil.java:173)
    at oracle.ide.osgi.boot.LauncherUtil.checkLaunchPrerequisites(LauncherUtil.java:129)
    at oracle.ide.osgi.boot.LauncherUtil.initialize(LauncherUtil.java:101)
    at oracle.ide.osgi.boot.OracleIdeLauncher.main(OracleIdeLauncher.java:80)

q5lcpyga

q5lcpyga1#

看来你必须安装和使用以前版本的java像jdk11

sudo apt install openjdk-11-jdk

相关问题