Can't build SceneBuild from openjfx source code and setup

Fabio Frumento

I'm trying to build JavaFX sceneBuilder on my laptop I've dowloaded the source code from OpenJFx project and successfully build the SDK but during scene builder build i've got the following error, I'm a little bit confused since I'm completely digiune of gradle i don't understand where i should put the required property, in which folder or which configuration file i should modify, and why grade is running ant tasks, I've not ant installed on my machine (it's not in the prerequisite of the openjfx wiki).

Many thanks

Galileo openjfx $ gradle sceneBuilderAppJar
:buildSrc:generateGrammarSource UP-TO-DATE
:buildSrc:compileJava UP-TO-DATE
:buildSrc:compileGroovy UP-TO-DATE
:buildSrc:processResources UP-TO-DATE
:buildSrc:classes UP-TO-DATE
:buildSrc:jar UP-TO-DATE
:buildSrc:assemble UP-TO-DATE
:buildSrc:compileTestJava UP-TO-DATE
:buildSrc:compileTestGroovy UP-TO-DATE
:buildSrc:processTestResources UP-TO-DATE
:buildSrc:testClasses UP-TO-DATE
:buildSrc:test UP-TO-DATE
:buildSrc:check UP-TO-DATE
:buildSrc:build UP-TO-DATE
MACOSX_MIN_VERSION = 10.7
MACOSX_SDK_PATH = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
OS_NAME: mac os x
OS_ARCH: x86_64
JAVA_HOME: /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home
JDK_HOME: /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home
java.runtime.version: 1.8.0_40-b27
java version: 1.8.0_40
java build number: 27
jdk.runtime.version: 1.8.0_40-b27
jdk version: 1.8.0_40
jdk build number: 27
minimum java build number: 132
CONF: Debug
NUM_COMPILE_THREADS: 1
COMPILE_TARGETS: mac
COMPILE_FLAGS_FILES: buildSrc/mac.gradle
HUDSON_JOB_NAME: not_hudson
HUDSON_BUILD_NUMBER: 0000
PROMOTED_BUILD_NUMBER: 00
PRODUCT_NAME: OpenJFX
RAW_VERSION: 8.0.60
RELEASE_NAME: 8u60
RELEASE_MILESTONE: ea
UPDATE_STUB_CACHE: false
The CompileOptions.useAnt property has been deprecated and is scheduled to be removed in Gradle 2.0. There is no replacement for this property.
:apps:scenebuilderAppJar FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':apps:scenebuilderAppJar'.
> The following error occurred while executing this line:
  /Users/fabiofrumento/openjfx/apps/scenebuilder/build.xml:19: The following error occurred while executing this line:
  /Users/fabiofrumento/openjfx/apps/scenebuilder/SceneBuilderKit/nbproject/build-impl.xml:86: The J2SE Platform is not correctly set up.
   Your active platform is: JDK_1.8, but the corresponding property "platforms.JDK_1.8.home" is not found in the project's properties files.
   Either open the project in the IDE and setup the Platform with the same name or add it manually.
   For example like this:
       ant -Duser.properties.file=<path_to_property_file> jar (where you put the property "platforms.JDK_1.8.home" in a .properties file)
    or ant -Dplatforms.JDK_1.8.home=<path_to_JDK_home> jar (where no properties file is used)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 7.228 secs
Galileo openjfx $
Fabio Frumento

Ok,

The problem was the gradle build system don't set the platforms.JDK_1.8.home I've solved this way:

1) Installed latest ant from apache official site

2) Gone into the apps/scenebuilder folder

3) Run ant -Dplatforms.JDK_1.8.home=/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/ jar

This worked for me, the result of the build is in the "dist" folder and to run the just built scene builder i had to use

/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home//bin/java -cp /Users/fabiofrumento/openjfx/apps/scenebuilder/SceneBuilderKit/dist/SceneBuilderKit.jar:/Users/fabiofrumento/openjfx/apps/scenebuilder/SceneBuilderApp/dist/SceneBuilderApp.jar com.oracle.javafx.scenebuilder.app.SceneBuilderApp

Obviously the paths are to be customized for you installation.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

'Decimal' source code from Microsoft - will it build?

From Dev

Can't build Octave from source

From Dev

Can't build json.me from the available source code

From Dev

Build HikariCP from source

From Dev

build a cordova plugin for android from source code

From Dev

SoapUI. Build from source code fails with "unresolved dependencies"

From Dev

How to build scene builder from openjfx sources

From Dev

Why can't I run "source" command from within a packer build?

From Dev

How can I build ejabberd source code in eclipse

From Dev

Can't build Cassandra from source code

From Dev

How can I build KDE Dolphin from its source code?

From Dev

Cython build can't find C++11 STL files - but only when called from setup.py

From Dev

Hide source code from build executable in electron-app

From Dev

Code::Blocks can't build / Compiler error?

From Dev

Can't read from the source file or disk

From Dev

Why can't I build Ruby code from Sublime Text 3 when I launch it from Ubuntu Dash vs Ubuntu Terminal

From Dev

How to build openjfx on ubuntu 14.04?

From Dev

How can I use values from the [Setup] section in code?

From Dev

How to build libssl.a for iOS from source code?

From Dev

Can't build json.me from the available source code

From Dev

Heroku Build API can't fetch source code

From Dev

VLC source code - setup/installer

From Dev

Can't use `source` from cron?

From Dev

Can you build apt-get from source?

From Dev

Can't get source code to build in JNI folder in Android Studio

From Dev

Hide source code from build executable in electron-app

From Dev

Jenkins: Can't fetch project's source code from GitLab

From Dev

setup.py build that doesn't reinvoke compiler on every C source file / incremental build

From Dev

ReactFX: can't build EventStream from DoubleProperty

Related Related

  1. 1

    'Decimal' source code from Microsoft - will it build?

  2. 2

    Can't build Octave from source

  3. 3

    Can't build json.me from the available source code

  4. 4

    Build HikariCP from source

  5. 5

    build a cordova plugin for android from source code

  6. 6

    SoapUI. Build from source code fails with "unresolved dependencies"

  7. 7

    How to build scene builder from openjfx sources

  8. 8

    Why can't I run "source" command from within a packer build?

  9. 9

    How can I build ejabberd source code in eclipse

  10. 10

    Can't build Cassandra from source code

  11. 11

    How can I build KDE Dolphin from its source code?

  12. 12

    Cython build can't find C++11 STL files - but only when called from setup.py

  13. 13

    Hide source code from build executable in electron-app

  14. 14

    Code::Blocks can't build / Compiler error?

  15. 15

    Can't read from the source file or disk

  16. 16

    Why can't I build Ruby code from Sublime Text 3 when I launch it from Ubuntu Dash vs Ubuntu Terminal

  17. 17

    How to build openjfx on ubuntu 14.04?

  18. 18

    How can I use values from the [Setup] section in code?

  19. 19

    How to build libssl.a for iOS from source code?

  20. 20

    Can't build json.me from the available source code

  21. 21

    Heroku Build API can't fetch source code

  22. 22

    VLC source code - setup/installer

  23. 23

    Can't use `source` from cron?

  24. 24

    Can you build apt-get from source?

  25. 25

    Can't get source code to build in JNI folder in Android Studio

  26. 26

    Hide source code from build executable in electron-app

  27. 27

    Jenkins: Can't fetch project's source code from GitLab

  28. 28

    setup.py build that doesn't reinvoke compiler on every C source file / incremental build

  29. 29

    ReactFX: can't build EventStream from DoubleProperty

HotTag

Archive