[英]Trying to write Java program to play mp3 file
I am trying to write a program that plays an mp3 file. 我正在尝试编写一个播放mp3文件的程序。 For some reason, I am getting the error " package.javafx.scene.media does not exist.
" How can I fix this? 由于某种原因,我收到错误消息“ package.javafx.scene.media does not exist.
”如何解决此问题?
You need e(fx)clipse
or you need to add the jfxrt.jar
to your classpath. 您需要e(fx)clipse
或将jfxrt.jar
添加到您的类路径中。 It comes with your JDK. 它随JDK一起提供。
How do I work with JavaFX in Eclipse Juno? 如何在Eclipse Juno中使用JavaFX? should sort it out for you. 应该为您解决。 NetBeans and IntelliJ come with built-in support for JavaFX. NetBeans和IntelliJ内置了对JavaFX的支持。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.