Last active
August 29, 2015 13:56
-
-
Save 166MMX/9290468 to your computer and use it in GitHub Desktop.
Run JavaFX Scene Builder with extended classpath to successfully reference third party resources
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
HOME="$USERPROFILE" | |
SB_HOME="${PROGRAMFILES}/Oracle/JavaFX Scene Builder 2.0" | |
JAVA_HOME="${PROGRAMW6432}/Java/jdk1.8.0" | |
PATH="$JAVA_HOME/bin:$PATH" | |
CLASSPATH="$SB_HOME/app/SceneBuilderKit.jar" | |
CLASSPATH="$SB_HOME/app/SceneBuilderApp.jar;$CLASSPATH" | |
CLASSPATH="$CLASSPATH;$HOME/.groovy/grapes/org.freedesktop.tango/tango-icon-theme/jars/tango-icon-theme-0.8.90.jar" | |
export JAVA_HOME | |
java -client -classpath "$CLASSPATH" \ | |
-Xmx1g \ | |
-Dfile.encoding=UTF-8 \ | |
"-Djava.library.path=$SB_HOME/app/" \ | |
"-Djava.util.logging.config.file=$SB_HOME/app/logging.properties" \ | |
"-Djava.security.policy=$SB_HOME/app/scenebuilder.policy" \ | |
-Djava.security.manager \ | |
-Djavafx.autoproxy.disable=true \ | |
-Dapp.preferences.id=com/oracle/javafx/scenebuilder \ | |
com.oracle.javafx.scenebuilder.app.SceneBuilderApp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment