is JavaFX Scene Builder available on linux support?

Walllzzz picture Walllzzz · Jun 4, 2012 · Viewed 8.4k times · Source

I can't find JavaFX scene Builder Linux package on the Oracle official website http://www.oracle.com/technetwork/java/javafx/overview/index.html is there any Solution so that I can work on it on a Linux plateforme ?

Answer

dmoebius picture dmoebius · Aug 15, 2012

The MAC OS version also works on Linux, because SceneBuilder is 100% pure Java, mostly. Download the MacOS DMG file from here: http://www.oracle.com/technetwork/java/javafx/downloads/index.html

Then extract with 7-zip. It's a compressed HFS file system.

$ mkdir javafx_scenebuilder
$ 7z e -ojavafx_scenebuilder javafx_scenebuilder-1_0-macosx-universal.dmg

Now extract the HFS partition:

$ cd javafx_scenebuilder
$ 7z x 4.hfs

This will extract lots of files. You'll only need "JavaFX Scene Builder 1.0/JavaFX Scene Builder 1.0.app/Contents/Java". You can remove all other files. Start Scenebuilder:

$ cd "JavaFX Scene Builder 1.0/JavaFX Scene Builder 1.0.app/Contents/Java"
$ java -cp javafx-beans-dt.jar:javafx-designtime.jar:jfxrt.jar:SceneBuilder.jar com.oracle.javafx.authoring.Main

There'll be an exception upon start saying something about "ClassNotFoundException: com.sun.prism.es2.gl.x11.X11GLFactory", but it'll work anyway.

Note that you'll need JDK7u6 to run it.