Walllzzz
Walllzzz

Reputation: 560

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 ?

Upvotes: 6

Views: 9243

Answers (6)

Eduardo
Eduardo

Reputation: 69

Yes. Look at JavaFX Scene Builder.

Developer Preview Download

Upvotes: 6

jewelsea
jewelsea

Reputation: 159341

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.

Upvotes: 10

dmoebius
dmoebius

Reputation: 994

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.

Upvotes: 18

wungad
wungad

Reputation: 21

i've got scene builder working on linux. 1. got the MacOS edition (.dmg file) 2. extracted .jar files 3. created proper dir structure 4. created a script that executes proper command 5. win

Upvotes: 2

TommyTho
TommyTho

Reputation: 11

One option, which I use until it is officially supported for Linux is to install the Windows version of Scene Builder through Wine.

Upvotes: 1

Puce
Puce

Reputation: 38132

Yes, you're right, there is no Linux version available yet, unfortunatly.

I asked on the JavaFX Forum earlier this year, you can find the answer from Jeff McDonald here:

https://forums.oracle.com/forums/thread.jspa?threadID=2369765&start=15&tstart=0

So I think you have 2 choices:

  • Edit the FXML file manually
  • Use a virtual machine where you install an OS supported by Scence Builder and you use it to edit the FXML files. (You could e.g. share a directory between the Linux host and the guest and keep the rest of the development on Linux.)

Upvotes: 2

Related Questions