我正在尝试安装Oracle,我有一些问题,所以我将把我做的每一步都做好,以便更容易地理解问题。
首先,我的目标是:
PRETTY_NAME="Parrot GNU/Linux 4.5"
NAME="Parrot GNU/Linux"
ID=parrot
ID_LIKE=debian
VERSION="4.5"
VERSION_ID="4.5"
HOME_URL="https://www.parrotsec.org/"
SUPPORT_URL="https://community.parrotsec.org/"
BUG_REPORT_URL="https://dev.parrotsec.org/"现在安装:
我下载了rpm软件包并使用外星安装:
sudo alien --scripts datamodeler-18.4.0.339.1532-1.noarch.rpm然后我用以下方式安装了*.deb包:
sudo dpkg -i datamodeler-18.4.0.339.1532-1.noarch.deb现在我的问题就在这里。当我通过终端启动datamodeler时,上面写着“设置您的java路径”,所以我做的第一件事就是查看我的jdk版本和我安装的版本:
openjdk version "11.0.3" 2019-04-16 OpenJDK Runtime Environment (build
11.0.3+1-Debian-1) OpenJDK 64-Bit Server VM (build 11.0.3+1-Debian-1, mixed mode, sharing)对于这个版本,它并不是简单的工作,所以我安装了jdk 8版本,使用synaptic和这些是我安装的包。
到目前为止,直到我运行这个程序,这才是发生的事情。
以下是错误:
Problem initializing the JavaFX runtime. This feature requires JavaFX.
java.lang.NoClassDefFoundError: javafx/embed/swing/JFXPanel
at oracle.dbtools.raptor.javafx.ui.JFXPanelFactory.createJFXPanelImpl(JFXPanelFactory.java:58)
at oracle.dbtools.raptor.javafx.ui.JFXPanelFactory.createJFXPanel(JFXPanelFactory.java:34)
at oracle.dbtools.raptor.startpage.StartPageViewer.createGUIComponent(StartPageViewer.java:179)
at oracle.dbtools.raptor.startpage.StartPageViewer.getEditorContent(StartPageViewer.java:136)
at oracle.ide.editor.AsynchronousEditor$2.run(AsynchronousEditor.java:345)
at oracle.ide.editor.AsynchronousEditor$5.run(AsynchronousEditor.java:555)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
Caused by: java.lang.ClassNotFoundException: javafx.embed.swing.JFXPanel cannot be found by oracle.sqldeveloper_18.4.0
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at org.netbeans.modules.netbinox.NetbinoxLoader.loadClass(NetbinoxLoader.java:81)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 10 more我最后一次尝试安装这个:
sudo apt-get install libjavafxsvg-java 但是没有变化,我不知道下一步该做什么。我的老师不会帮我,因为他们说‘他们不知道如何在linux上安装它’。所以,我需要一个人谁可以节省我的一天,我有一个工作到期本周五,我需要这个计划。
提前谢谢。
发布于 2019-03-20 22:40:01
好吧,我找到解决办法了!
非常简单,我只需下载这 jdk版本,然后将其解压到所有其他jdk版本的位置,即:
/usr/lib/jvm/
只需在. .data_modeler/1.0.0.0.0/product.conf中的conf文件中添加下面一行
SetJavaHome /usr/lib/jvm/jdk1.8.0_201https://stackoverflow.com/questions/55268651
复制相似问题