在ubuntu 20.10上安装cpusim4.0.1时出错java.lang.noclassdeffounderror

p4rjhz4m  于 2021-07-03  发布在  Java
关注(0)|答案(0)|浏览(274)

我有Ubuntu20.10,正在为大学考试安装cpusim4.0.1,请帮助我。
java—版本输出:

wickeddude@ravi:~$ java --version
 openjdk 11.0.2 2019-01-15
 OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
 OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)

javac—版本输出:

javac --version
javac 11.0.9.1

我已经下载了cpusim4.0.1文件,并提取了它,但在键入,但这是错误的

wickeddude@ravi:~/Downloads/CPUSim4.0.11$ java -cp .:richtextfx-0.6.10.jar:reactfx-2.0-M4.jar -jar CPUSim-4.0.11.jar -m SampleAssignments/Wombat1.cpu -t SampleAssignments/W1-0.a
Exception in thread "main" java.lang.NoClassDefFoundError: javafx/application/Application
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
    at cpusim.Main.main(Main.java:73)
Caused by: java.lang.ClassNotFoundException: javafx.application.Application
    at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
    ... 13 more

我已经下载了javafx

javafx-sdk-11.0.2

但我不知道该怎么办
请帮助我,我想安装cpusim4.0.1大学实用谢谢

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题