You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to jarify the Demo example (samples/fxml/Demo.rb) but the resulting Demo.jar file cannot be consumed by "java -jar Demo.jar" due to
LoadError: no such file to load -- classpath:/home/cg/wuala_synced_data/misc/JavaFX_projects/jrubyfx/complex_control
It seems like "complex_control.rb" is NOT attempted to be resolved from the Demo.jar itself (which contains that file) but instead is attempted to be resolved from the current working directory (which happens to be ~/wuala_synced_data/misc/JavaFX_projects/jrubyfx in my case) which apparently does not contain that file !?
cg@cg-TravelMate-6292 ~/wuala_synced_data/misc/JavaFX_projects/jrubyfx $ jrubyfx-jarify samples/fxml/ --main samples/fxml/Demo.rb Demo.jar && java -jar Demo.jar
mkdir -p /tmp/jrubyfx20141110-20239-zmjsjl
cp /home/cg/.jruby-jar/jruby-complete-1.7.9.jar /tmp/jrubyfx20141110-20239-zmjsjl/Demo.jar
cp -r samples/fxml//ComplexControl.fxml /tmp/jrubyfx20141110-20239-zmjsjl/ComplexControl.fxml
cp -r samples/fxml//Demo.fxml /tmp/jrubyfx20141110-20239-zmjsjl/Demo.fxml
cp -r samples/fxml//Demo.rb /tmp/jrubyfx20141110-20239-zmjsjl/Demo.rb
cp -r samples/fxml//complex_control.rb /tmp/jrubyfx20141110-20239-zmjsjl/complex_control.rb
cp samples/fxml/Demo.rb /tmp/jrubyfx20141110-20239-zmjsjl/jar-bootstrap.rb
cp -r /home/cg/wuala_synced_data/misc/JavaFX_projects/jrubyfx/lib/jrubyfx /tmp/jrubyfx20141110-20239-zmjsjl
cp -r /home/cg/wuala_synced_data/misc/JavaFX_projects/jrubyfx/lib/jrubyfx.rb /tmp/jrubyfx20141110-20239-zmjsjl
cp -r /home/cg/wuala_synced_data/misc/JavaFX_projects/jrubyfx/lib/jrubyfx_tasks.rb /tmp/jrubyfx20141110-20239-zmjsjl
cp -r /home/cg/.rvm/gems/jruby-1.7.9/gems/jrubyfx-fxmlloader-0.3-java/lib/FXMLLoader-j8.jar /tmp/jrubyfx20141110-20239-zmjsjl
cp -r /home/cg/.rvm/gems/jruby-1.7.9/gems/jrubyfx-fxmlloader-0.3-java/lib/fxmlloader /tmp/jrubyfx20141110-20239-zmjsjl
cp -r /home/cg/.rvm/gems/jruby-1.7.9/gems/jrubyfx-fxmlloader-0.3-java/lib/jrubyfx-fxmlloader.rb /tmp/jrubyfx20141110-20239-zmjsjl
cd /tmp/jrubyfx20141110-20239-zmjsjl
jar ufe 'Demo.jar' org.jruby.JarBootstrapMain *
chmod 775 Demo.jar
cd /home/cg/wuala_synced_data/misc/JavaFX_projects/jrubyfx
mv /tmp/jrubyfx20141110-20239-zmjsjl/Demo.jar Demo.jar
rm -rf /tmp/jrubyfx20141110-20239-zmjsjl
LoadError: no such file to load -- classpath:/home/cg/wuala_synced_data/misc/JavaFX_projects/jrubyfx/complex_control
require at org/jruby/RubyKernel.java:1083
require at jar:file:/home/cg/wuala_synced_data/misc/JavaFX_projects/jrubyfx/Demo.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55
require at jar:file:/home/cg/wuala_synced_data/misc/JavaFX_projects/jrubyfx/Demo.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53
require_relative at file:/home/cg/wuala_synced_data/misc/JavaFX_projects/jrubyfx/Demo.jar!/jruby/kernel19/kernel.rb:21
(root) at classpath:jar-bootstrap.rb:21
cg@cg-TravelMate-6292 ~/wuala_synced_data/misc/JavaFX_projects/jrubyfx $
By the way: I am using jurby-1.7.9:
cg@cg-TravelMate-6292 ~/wuala_synced_data/misc/JavaFX_projects/jrubyfx $ jruby -v
jruby 1.7.9 (1.9.3p392) 2013-12-06 87b108a on Java HotSpot(TM) Server VM 1.7.0_60-b19 [linux-i386]
cg@cg-TravelMate-6292 ~/wuala_synced_data/misc/JavaFX_projects/jrubyfx $
The text was updated successfully, but these errors were encountered:
I would recommend you to update your jruby. Up to the jruby 1.7.10 there were some problems related with require_relative and File.expand_path that may or may not be related with your problem
I tried to jarify the Demo example (samples/fxml/Demo.rb) but the resulting Demo.jar file cannot be consumed by "java -jar Demo.jar" due to
LoadError: no such file to load -- classpath:/home/cg/wuala_synced_data/misc/JavaFX_projects/jrubyfx/complex_control
It seems like "complex_control.rb" is NOT attempted to be resolved from the Demo.jar itself (which contains that file) but instead is attempted to be resolved from the current working directory (which happens to be ~/wuala_synced_data/misc/JavaFX_projects/jrubyfx in my case) which apparently does not contain that file !?
cg@cg-TravelMate-6292 ~/wuala_synced_data/misc/JavaFX_projects/jrubyfx $ jrubyfx-jarify samples/fxml/ --main samples/fxml/Demo.rb Demo.jar && java -jar Demo.jar
mkdir -p /tmp/jrubyfx20141110-20239-zmjsjl
cp /home/cg/.jruby-jar/jruby-complete-1.7.9.jar /tmp/jrubyfx20141110-20239-zmjsjl/Demo.jar
cp -r samples/fxml//ComplexControl.fxml /tmp/jrubyfx20141110-20239-zmjsjl/ComplexControl.fxml
cp -r samples/fxml//Demo.fxml /tmp/jrubyfx20141110-20239-zmjsjl/Demo.fxml
cp -r samples/fxml//Demo.rb /tmp/jrubyfx20141110-20239-zmjsjl/Demo.rb
cp -r samples/fxml//complex_control.rb /tmp/jrubyfx20141110-20239-zmjsjl/complex_control.rb
cp samples/fxml/Demo.rb /tmp/jrubyfx20141110-20239-zmjsjl/jar-bootstrap.rb
cp -r /home/cg/wuala_synced_data/misc/JavaFX_projects/jrubyfx/lib/jrubyfx /tmp/jrubyfx20141110-20239-zmjsjl
cp -r /home/cg/wuala_synced_data/misc/JavaFX_projects/jrubyfx/lib/jrubyfx.rb /tmp/jrubyfx20141110-20239-zmjsjl
cp -r /home/cg/wuala_synced_data/misc/JavaFX_projects/jrubyfx/lib/jrubyfx_tasks.rb /tmp/jrubyfx20141110-20239-zmjsjl
cp -r /home/cg/.rvm/gems/jruby-1.7.9/gems/jrubyfx-fxmlloader-0.3-java/lib/FXMLLoader-j8.jar /tmp/jrubyfx20141110-20239-zmjsjl
cp -r /home/cg/.rvm/gems/jruby-1.7.9/gems/jrubyfx-fxmlloader-0.3-java/lib/fxmlloader /tmp/jrubyfx20141110-20239-zmjsjl
cp -r /home/cg/.rvm/gems/jruby-1.7.9/gems/jrubyfx-fxmlloader-0.3-java/lib/jrubyfx-fxmlloader.rb /tmp/jrubyfx20141110-20239-zmjsjl
cd /tmp/jrubyfx20141110-20239-zmjsjl
jar ufe 'Demo.jar' org.jruby.JarBootstrapMain *
chmod 775 Demo.jar
cd /home/cg/wuala_synced_data/misc/JavaFX_projects/jrubyfx
mv /tmp/jrubyfx20141110-20239-zmjsjl/Demo.jar Demo.jar
rm -rf /tmp/jrubyfx20141110-20239-zmjsjl
LoadError: no such file to load -- classpath:/home/cg/wuala_synced_data/misc/JavaFX_projects/jrubyfx/complex_control
require at org/jruby/RubyKernel.java:1083
require at jar:file:/home/cg/wuala_synced_data/misc/JavaFX_projects/jrubyfx/Demo.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55
require at jar:file:/home/cg/wuala_synced_data/misc/JavaFX_projects/jrubyfx/Demo.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53
require_relative at file:/home/cg/wuala_synced_data/misc/JavaFX_projects/jrubyfx/Demo.jar!/jruby/kernel19/kernel.rb:21
(root) at classpath:jar-bootstrap.rb:21
cg@cg-TravelMate-6292 ~/wuala_synced_data/misc/JavaFX_projects/jrubyfx $
By the way: I am using jurby-1.7.9:
cg@cg-TravelMate-6292 ~/wuala_synced_data/misc/JavaFX_projects/jrubyfx $ jruby -v
jruby 1.7.9 (1.9.3p392) 2013-12-06 87b108a on Java HotSpot(TM) Server VM 1.7.0_60-b19 [linux-i386]
cg@cg-TravelMate-6292 ~/wuala_synced_data/misc/JavaFX_projects/jrubyfx $
The text was updated successfully, but these errors were encountered: