If I run C:\Program Files\java\jdk1.7.0_40\bin\javap javafx.application.Application
I am met with a Error: class not found: javafx.application.Application
.
If I run Netbeans, it has a Java 7 platform and a JavaFX platform, both of which have the same settings (same platform folder, same classes, same javadoc), so I would assume both platforms would behave the same. If I create a new Java project, import javafx.application.Application
gives an error package javafx.application does not exist
but creating a new JavaFX project sets up a project which uses a bunch of JavaFX stuff without any errors.
Being Java 7u40, it should have JavaFX 2.2.40 built in, yes? No? See Oracle JavaFX Release Documents
If I can get JavaFX behaving, I will be using it in a normal Java project in Netbeans which already exists and it will be embedded into an existing Swing GUI, not a new JavaFX project.
I have seen other similar questions here on Stack Overflow, but they at least seem to be able to compile and run their applications and are met with runtime errors or unexpected behavior. I cannot even get to that point.
How do I use JavaFX in my Java application under 7u40, since Oracle says JavaFX 2.2.40 should be included? Should I not expect to be able to include javafx package normally as I do any other built in Java package?