Giter Club home page Giter Club logo

Comments (4)

byteit101 avatar byteit101 commented on July 24, 2024

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.

supermomonga avatar supermomonga commented on July 24, 2024

Thanks. I'll try and report.

from jrubyfx.

supermomonga avatar supermomonga commented on July 24, 2024

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.

byteit101 avatar byteit101 commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.