Comments (4)
Does this work when using masters?
https://github.com/byteit101/JRubyFX-FXMLLoader
https://github.com/byteit101/JRubyFXML
clone both those, then rake gem
and install the gems. try again, report back.
from jrubyfx.
Thanks. I'll try and report.
from jrubyfx.
I tried. Compiling is successfully finished, but generated Demo.jar doesn't work. It causes segmentation fault.
❯ jruby -S gem list
*** LOCAL GEMS ***
builder (3.2.2)
hoe (3.7.0)
jrubyfx (1.1.0 java)
jrubyfx-fxmlloader (0.3 java)
rake (10.1.0, 10.0.3)
rawr (1.6.6)
rubyzip (0.9.9)
s4t-utils (1.0.4)
user-choices (1.1.6.1)
xml-simple (1.1.2)
❯ jruby -S jrubyfx-jarify samples/fxml/ --main samples/fxml/Demo.rb Demo.jar
mkdir -p /Users/momonga/.jruby-jar
cd /Users/momonga/.jruby-jar
JRuby complete jar not found. Downloading... (May take awhile)
cd /Users/momonga/Dropbox/Develops/jrubyfx
mkdir -p /var/folders/jf/9wcyvc712dgbrnx19dxlrfy80000gn/T/jrubyfx20130819-75758-13sv53c
cp /Users/momonga/.jruby-jar/jruby-complete-1.7.4.jar /var/folders/jf/9wcyvc712dgbrnx19dxlrfy80000gn/T/jrubyfx20130819-75758-13sv53c/Demo.jar
cp -r samples/fxml//complex_control.rb /var/folders/jf/9wcyvc712dgbrnx19dxlrfy80000gn/T/jrubyfx20130819-75758-13sv53c/complex_control.rb
cp -r samples/fxml//ComplexControl.fxml /var/folders/jf/9wcyvc712dgbrnx19dxlrfy80000gn/T/jrubyfx20130819-75758-13sv53c/ComplexControl.fxml
cp -r samples/fxml//Demo.fxml /var/folders/jf/9wcyvc712dgbrnx19dxlrfy80000gn/T/jrubyfx20130819-75758-13sv53c/Demo.fxml
cp -r samples/fxml//Demo.rb /var/folders/jf/9wcyvc712dgbrnx19dxlrfy80000gn/T/jrubyfx20130819-75758-13sv53c/Demo.rb
cp samples/fxml/Demo.rb /var/folders/jf/9wcyvc712dgbrnx19dxlrfy80000gn/T/jrubyfx20130819-75758-13sv53c/jar-bootstrap.rb
cp -r /usr/local/Cellar/jruby/1.7.4/libexec/lib/ruby/gems/shared/gems/jrubyfx-1.1.0-java/lib/jrubyfx /var/folders/jf/9wcyvc712dgbrnx19dxlrfy80000gn/T/jrubyfx20130819-75758-13sv53c
cp -r /usr/local/Cellar/jruby/1.7.4/libexec/lib/ruby/gems/shared/gems/jrubyfx-1.1.0-java/lib/jrubyfx.rb /var/folders/jf/9wcyvc712dgbrnx19dxlrfy80000gn/T/jrubyfx20130819-75758-13sv53c
cp -r /usr/local/Cellar/jruby/1.7.4/libexec/lib/ruby/gems/shared/gems/jrubyfx-1.1.0-java/lib/jrubyfx_tasks.rb /var/folders/jf/9wcyvc712dgbrnx19dxlrfy80000gn/T/jrubyfx20130819-75758-13sv53c
cp -r /usr/local/Cellar/jruby/1.7.4/libexec/lib/ruby/gems/shared/gems/jrubyfx-fxmlloader-0.3-java/lib/fxmlloader /var/folders/jf/9wcyvc712dgbrnx19dxlrfy80000gn/T/jrubyfx20130819-75758-13sv53c
cp -r /usr/local/Cellar/jruby/1.7.4/libexec/lib/ruby/gems/shared/gems/jrubyfx-fxmlloader-0.3-java/lib/FXMLLoader-j8.jar /var/folders/jf/9wcyvc712dgbrnx19dxlrfy80000gn/T/jrubyfx20130819-75758-13sv53c
cp -r /usr/local/Cellar/jruby/1.7.4/libexec/lib/ruby/gems/shared/gems/jrubyfx-fxmlloader-0.3-java/lib/jrubyfx-fxmlloader.rb /var/folders/jf/9wcyvc712dgbrnx19dxlrfy80000gn/T/jrubyfx20130819-75758-13sv53c
cd /var/folders/jf/9wcyvc712dgbrnx19dxlrfy80000gn/T/jrubyfx20130819-75758-13sv53c
jar ufe 'Demo.jar' org.jruby.JarBootstrapMain *
chmod 775 Demo.jar
cd /Users/momonga/Dropbox/Develops/jrubyfx
mv /var/folders/jf/9wcyvc712dgbrnx19dxlrfy80000gn/T/jrubyfx20130819-75758-13sv53c/Demo.jar Demo.jar
rm -rf /var/folders/jf/9wcyvc712dgbrnx19dxlrfy80000gn/T/jrubyfx20130819-75758-13sv53c
❯ java -jar ./Demo.jar
Exception running Application:
#<TypeError: can't convert nil into String>
org/jruby/RubyFile.java:1840:in `join'
org/jruby/RubyFile.java:801:in `join'
file:/Users/momonga/Dropbox/Develops/jrubyfx/Demo.jar!/jrubyfx/controller.rb:339:in `get_fxml_loader'
file:/Users/momonga/Dropbox/Develops/jrubyfx/Demo.jar!/jrubyfx/controller.rb:117:in `load_into'
classpath:jar-bootstrap.rb:42:in `start'
file:/Users/momonga/Dropbox/Develops/jrubyfx/Demo.jar!/jrubyfx/java_fx_impl.rb:124:in `launch_app_after_platform'
org/jruby/gen/InterfaceImpl1713636191.gen:13:in `run'
Java has been detached already, but someone is still trying to use it at -[GlassApplication GlassApplicationDidChangeScreenParameters]:src/com/sun/mat/ui/GlassApplication.m:138
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000000167f72b93, pid=75924, tid=3847
#
# JRE version: 7.0_25-b15
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.25-b01 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C [libglass.dylib+0x13b93] GlassScreenDidChangeScreenParameters+0x13
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/momonga/Dropbox/Develops/jrubyfx/hs_err_pid75924.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
#
zsh: abort java -Dfile.encoding=UTF-8 -jar ./Demo.jar
from jrubyfx.
JRubyFX 2.0 has been released. Your issue may have been fixed in 2.0. If your issue still applies to JRubyFX 2.0, please reopen this issue.
from jrubyfx.
Related Issues (20)
- jrubyfx sensitive to number of spaces in fxml HOT 2
- Enhancement: Provide Ruby binding impls HOT 1
- Setting TableView items doesn't seem to work HOT 4
- Jar classpath issue on windows HOT 1
- jarify with fxml: no .jrubyfx_cache in the jarfile HOT 1
- jarify with fxml: cannot access the fxml files
- jarify with fxml: require_relative doesn't work from inside a jarfile
- jrubfx-jarify compiled jar does not laucnch HOT 5
- cannot run the hello world app HOT 2
- gem install jrubyfx gem not found HOT 1
- Permission denied for 'jrubyfx_cache' HOT 2
- Need more documentation for controller functions HOT 1
- jrubyfx não encaminhando HOT 2
- Is this project active ? HOT 3
- Path to jfxrt.jar loading issue with 1.8.0_202-ea-b03 HOT 1
- Would it be possible to add a screenshot-example to the main README here? HOT 1
- Use javafx 17 modules HOT 3
- Warning: SCENE3D? HOT 1
- More examples perhaps? TextArea specifically
- Classic OOP style? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jrubyfx.