Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is JavaFX Scene Builder available on linux support?

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 ?

like image 787
Walllzzz Avatar asked Jun 04 '12 20:06

Walllzzz


2 Answers

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.

like image 72
dmoebius Avatar answered Nov 15 '22 08:11

dmoebius


There is now an official developer preview of SceneBuilder for Linux.

Release notes, installation instructions and known bugs.

This preview renders obsolete the clever workarounds posted in a previous questions to make use of Wine or the Mac OS X version of SceneBuilder on Linux.

like image 45
jewelsea Avatar answered Nov 15 '22 09:11

jewelsea