Hi. I am playing with ruby processing, which I installed by gem. I managed to run WishyWorm demo from samples:
rp5 unpack samples
rp5 run samples/contributed/jwishy.rb
It works well. But next step I try to run it as an applet
rp5 applet samples/contributed/jwishy.rb
opera jwishy/index.html
Then I've got:
Trace level set to 5: all ... completed.network: Cache entry not found [url: file:/home/x/Dokumenty/projekty/automaty%20komorkowe/01/rp2/jwishy/core/core.jar, version: null]
network: Cache entry not found [url: file:/home/x/Dokumenty/projekty/automaty%20komorkowe/01/rp2/jwishy/, version: null]
MethodFactory: failed to load bytecode at runtime, falling back on reflection
java.lang.RuntimeException: Error running script
at org.jruby.JRubyApplet.init(JRubyApplet.java:239)
at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.init(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.jruby.exceptions.RaiseException: (ArgumentError) user.home/LOGDIR not set
Ignored exception: java.lang.RuntimeException: Error running script
basic: Removed progress listener: sun.plugin.util.ProgressMonitorAdapter@1ffd3d7
security: Accessing keys and certificate in Mozilla user profile: null
security: Reset deny session certificate store
So I came back to my local sample and try to change jruby-complete.jar to another one. I downloaded the newest one from svn trunk and build it by
ant jar-jruby-complete
After changing jars many errors appered, but when I signed this jar by my fake-certificate it is close to make it work:
security: resource name "./ruby-processing/runners/run.rb" in file:/home/x/Dokumenty/projekty/automaty%20komorkowe/01/rp2/jwishymod/ : java.lang.SecurityException: trusted loader attempted to load sandboxed resource from file:/home/x/Dokumenty/projekty/automaty%20komorkowe/01/rp2/jwishymod/
security: resource name "ruby-processing/runners/run.rb" in file:/home/x/Dokumenty/projekty/automaty%20komorkowe/01/rp2/jwishymod/ : java.lang.SecurityException: trusted loader attempted to load sandboxed resource from file:/home/x/Dokumenty/projekty/automaty%20komorkowe/01/rp2/jwishymod/
java.lang.RuntimeException: Error running script
at org.jruby.JRubyApplet.init(JRubyApplet.java:245)
at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.init(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- ruby-processing/runners/run
What's wrong this time?
I would be the most happy fixing first issue LOGDIR. It will allows me to using stable release without my fake-certificates.
Is it possible to turn off logging? I wonder if even LOGDIR is set, will applet try to log messages on hard drive? Isn't it restricted area by non-signed applets?
Thanks for any help.
My configuration:
Ubuntu 10.04 2.6.32-35-generic
Opera 10.52 build 1100
Java Plug-in 10.0.0.8 Using JRE version 1.7.0_01-b08