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?
Asked
Active
Viewed 125 times
1

An SO User
- 24,612
- 35
- 133
- 221

user112829
- 491
- 1
- 4
- 7
2 Answers
4
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.

Community
- 1
- 1

An SO User
- 24,612
- 35
- 133
- 221
1
You could also work with Java 8 as JavaFX is already included there. It also provides a lot of improvements on JavaFX components.

Lukas Leitinger
- 631
- 4
- 15