Reputation: 1047
I have JavaFX code that I know that works, but I'm not sure how to run it in Eclipse.
I installed E(fx)clipse and I know that my java files work.
When I try to run the file though it says editor does not contain a main type.
Upvotes: 3
Views: 226
Reputation: 2179
I think you need the Eclipse workaround for starting JavaFX applications. Simply add the following to the class which extends javafx.application.Application
:
public static void main(String[] args)
{
launch(args);
}
Upvotes: 1