I am trying to write a program that plays an mp3 file. For some reason, I am getting the error " package.javafx.scene.media does not exist.
" How can I fix this?
You need e(fx)clipse
or you need to add the jfxrt.jar
to your classpath. It comes with your JDK.
How do I work with JavaFX in Eclipse Juno? should sort it out for you. NetBeans and IntelliJ come with built-in support for JavaFX.
You could also work with Java 8 as JavaFX is already included there. It also provides a lot of improvements on JavaFX components.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.