ChimaJ
ChimaJ

Reputation: 163

SceneBuilder failed to launch says "No main class specified"

I installed SceneBuilder 8.5.0, now after installing the SceneBuilder for the first time, it works properly, but next time that I would want to open it, it gives an error No main class specified after that it says failed to launch JVM

This keeps making me to uninstall the previous one and installing a new one each time I want to use it. Anyone knows what might be causing this?

I have tried launching it with the executable jar file called dist.jar inside the the app folder in the installation directory, it launched properly but when i tried specifying the executable jar file as the SceneBuilder executable path in eclipse IDE, I get this error each time I want to open an fxml file with SceneBuilder.

Failed to launch SceneBuilder. The error message was: Cannot run program "C:\SceneBuilder\app\dist.jar": CreateProcess error=193, %1 is not a valid Win32 application

This means I must specify the .exe executable file which doesn't work.

Any help help or clue would be appreciated.

Upvotes: 3

Views: 617

Answers (1)

gelp
gelp

Reputation: 11

Try this:

CTRL + ALT + S, click to JavaFx

Then look for SceneBuilder.exe in C:\ProgramFiles\SceneBuilder

I had the same problem. When I upgraded the scene builder from 8 to 11, I unconsciously recorded another path. The problem was fixed when I changed the path with C:\ProgramFiles\SceneBuilder\SceneBuilder.exe I mean maybe you have more than 1 scene builder folder like me.

Upvotes: 1

Related Questions