0

I downloaded Scene Builder and I was trying to open a .fxml file but there was this error message:

Failed to launch SceneBuilder. The error message was: Cannot run program "C:\Program Files(x86)\Oracle\JavaFX Scene Builder 2.0": CreateProcess error = 5, Acces is denied

I don't know what this means or how to fix it. Thank you a lot.

Lara Calvo
  • 1
  • 1
  • 1

6 Answers6

1

According to this post, your problem may occur when you try to open a file with a no-executable, so you have probably opened your fxml file with another type, for example the program icon.

Community
  • 1
  • 1
Bo Halim
  • 1,716
  • 2
  • 17
  • 23
  • I still can't open it from eclipse, but I can open the file from the app. I used this location C:\Program Files (x86)\Oracle\JavaFX Scene Builder 2.0 – Lara Calvo Jan 09 '17 at 16:59
  • In the context menu do you have the "Open with SceneBuilder" option when you right click on the `FXML` file? – Bo Halim Jan 09 '17 at 17:02
  • Yes, there is that option – Lara Calvo Jan 09 '17 at 17:13
  • Ok, go to **Preferences** then **JavaFX** and verify that you have correctly inserted the location to the **executable** of the SceneBuilder – Bo Halim Jan 09 '17 at 17:17
  • I run it as an administrator, but now the error message is "the requested operation requires elevation" – Lara Calvo Jan 09 '17 at 17:22
1

The best solution is to stop copy and pasting the path and browse the application manually(scenebuilder).See when you copy the path this is what eclipse run C:\Program Files\SceneBuilder, Yet it is supposed to have C:\Program Files\SceneBuilder\SceneBuilder.exe try and browse the application path manual not looking for the file location and copy the path

0

This worked for me:

Reinstall Scene Builder as administrator copying installation path when prompted.

In Eclipse Window > Preferences > JavaFX and click Browse.

Paste Scene Builder Installation path and use tiny arrow top right to view that path.

Scroll until you find SceneBuilder (application - not the icon) and select. Apply and Close.

0

I suspect this is Windows permission issue. You can try any of the following:

Try running Eclipse as an Administrator.

enter image description here

...or give all applications full permission to SceneBuilde.exe

enter image description here

Jhourlad Estrella
  • 3,545
  • 4
  • 37
  • 66
0

If your using a MAC, try this with Java 8. Download scene-builder for Java 8, after set up your run config and download your Javafx libraries to eclipse and computer. Do this and it will create a new controller class for you which you can use as your controller class.

go to your fxml and do a right click

Then, set scene builder as your editor click to see images

Ashish Yadav
  • 1,901
  • 2
  • 17
  • 23
benSZ
  • 1
  • 1
0

I had the same issue. This is what worked for me.

In Eclipse Window > Preferences > JavaFX I added the complete path including SceneBuilder.exe

C:\Users\ ... AppData\Local\SceneBuilder\SceneBuilder.exe

See: Dialog box mentioned above

JCruz
  • 1