Netbeans 7.2.1 broken link: dist.jar (when encoding in a JavaFX file)

I am trying to learn JavaFX with some lessons, but I couldn’t even implement the helloworld application. NetBeans said:

Error: could not find or load the main class helloworld.NewFXMain Java Result: 1

and then when I checked Properties -> Libraries -> Run part, a warning appears that says

Broken Link: dist.jar

How can i solve this?

+4
source share
2 answers

when you create a new project in java fx and want to start the project for demonstration, this error occurs. You can try it as shown below: 1. Right click on the project. then click "Clear" and "Create." its launching your project in netbeans.

+3
source

Before starting, try the "clean and Build Project" command.

  • Menu-> Run-> Cleaning and Assembly Project

then run the project. It worked for me.

+1
source

All Articles