Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

com.javafx.main.Main Unable to find main class

edward17Jun 29 2012 — edited Jul 1 2012
Ever since Netbeans 7.2 beta and continuing with 7.2 RC1, whenever I try to run my JavaFX 2 project I get the error:

"Error: Could not find or load main class com.javafx.main.Main"

The workaround used to be to run the file itself, but now RC1 disallows that with a pop that says:

"JavaFX 2 launch model does not support single file execution. Proceed with execution of project?"

To which I would LIKE to respond "I wish I could!"

Anyone have any ideas?

Running JavaFX JDK 2.2, Java 7 u4
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 29 2012
Added on Jun 29 2012
3 comments
5,698 views