16 Oct 2012, 15:33
Andy_young_pragsmall

Andrew Young (2 posts)

Hello,

I’m struggling to get junquenote up and running. I’ve installed jruby, jemmy, cheri and crypt, but attempting to launch junquenote via eithe jruby_basics.rb or junquenote_app.rb results in:

Aluminum-Falcon:temp $ jruby jruby_basics.rb 
/Users/ayoung/temp/gems/cheri-0.5.0/lib/cheri/jruby/jruby.rb:31 warning: singleton on non-persistent Java type Java::JavaLang::Object (http://wiki.jruby.org/Persistence)
SyntaxError: /Users/ayoung/temp/gems/cheri-0.5.0/lib/cheri/builder/markup.rb:283: syntax error, unexpected ':'

        when String : esc(v,str)
                    ^
  require at org/jruby/RubyKernel.java:1019
   (root) at /Library/Frameworks/JRuby.framework/Versions/1.7.0.RC2/lib/ruby/shared/rubygems/custom_require.rb:1
  require at /Library/Frameworks/JRuby.framework/Versions/1.7.0.RC2/lib/ruby/shared/rubygems/custom_require.rb:36
  require at org/jruby/RubyKernel.java:1019
   (root) at /Users/ayoung/temp/gems/cheri-0.5.0/lib/cheri/builder.rb:27
   (root) at /Library/Frameworks/JRuby.framework/Versions/1.7.0.RC2/lib/ruby/shared/rubygems/custom_require.rb:1
  require at org/jruby/RubyKernel.java:1019
  require at /Library/Frameworks/JRuby.framework/Versions/1.7.0.RC2/lib/ruby/shared/rubygems/custom_require.rb:36
   (root) at /Users/ayoung/temp/gems/cheri-0.5.0/lib/cheri/java/builder.rb:26
  require at org/jruby/RubyKernel.java:1019
   (root) at /Library/Frameworks/JRuby.framework/Versions/1.7.0.RC2/lib/ruby/shared/rubygems/custom_require.rb:1
  require at /Library/Frameworks/JRuby.framework/Versions/1.7.0.RC2/lib/ruby/shared/rubygems/custom_require.rb:36
  require at org/jruby/RubyKernel.java:1019
   (root) at /Users/ayoung/temp/gems/cheri-0.5.0/lib/cheri/awt.rb:27
   (root) at /Library/Frameworks/JRuby.framework/Versions/1.7.0.RC2/lib/ruby/shared/rubygems/custom_require.rb:1
  require at org/jruby/RubyKernel.java:1019
  require at /Library/Frameworks/JRuby.framework/Versions/1.7.0.RC2/lib/ruby/shared/rubygems/custom_require.rb:36
   (root) at jruby_basics.rb:4

Any ideas what might be going wrong?

Thanks,

Andy

16 Oct 2012, 20:24
Mr_sketchy_pragsmall

Ian Dees (195 posts)

Hi, Andy.

Looks like the Cheri gem uses some Ruby 1.8-isms that aren’t legal in 1.9. Does it run if you start JRuby with the @–1.8@ flag, like so?

$ jruby --1.8 jruby_basics.rb

–Ian

16 Oct 2012, 22:00
Andy_young_pragsmall

Andrew Young (2 posts)

Thank-you Ian, that did it. Wish all my problems were so easily fixed ;-)

  You must be logged in to comment