This discussion is archived
1 Reply Latest reply: Jan 6, 2013 9:32 PM by jsmith RSS

javafx.scene.media does not exist

983194 Newbie
Currently Being Moderated
javafx.scene.media does not exist

I got this message, and I don't know why since I already have downloaded java update 10 which should have javafx in it
  • 1. Re: javafx.scene.media does not exist
    jsmith Guru
    Currently Being Moderated
    java 7 update 10 includes javafx, but not on the default classpath (I believe that is scheduled for java 7 update 12 and/or java 8).
    Look in your jre distribution and you find a jfxrt.jar file, you can add that to your classpath and the class will be found.

    If you package your application using the javafx packaging tools, then the javafx code should be also be found at runtime without you having to add jfxrt.jar to the runtime classpath.
    http://docs.oracle.com/javafx/2/deployment/jfxpub-deployment.htm

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points