librelist archives

« back to archive

help needed with shoes4 sample

help needed with shoes4 sample

From:
Catsquotl
Date:
2012-10-16 @ 08:45
Hi,

I think i have managed to setup jruby and shoes4 on a fresh windows 7 
system.
when trying to run the first sample I get this error message.
---------------
C:\Ruby\shoes4>bin\swt-shoooes .\samples\simple-sound.rb

C:\Ruby\shoes4>call jruby --1.9 -e "$:<< 'lib'; require 'shoes'; require 
'shoes/
configuration'; Shoes.configuration.backend = :swt; require 
'.\samples\simple-so
und.rb' "
c:/jruby-1.7.0.RC2/lib/ruby/gems/shared/gems/swt-0.13/lib/swt/jar_loader.rb:9: 
U
se RbConfig instead of obsolete and deprecated Config.
NameError: missing class or uppercase package name 
(`org.eclipse.swt.widgets.Dis
play')
   get_proxy_or_package_under_package at 
org/jruby/javasupport/JavaUtilities.java
:54
                       method_missing at 
file:/C:/jruby-1.7.0.RC2/lib/jruby.jar!/
jruby/java/java_package_module_template.rb:10
                              Widgets at 
c:/jruby-1.7.0.RC2/lib/ruby/gems/shared/
gems/swt-0.13/lib/swt/minimal.rb:12
                                  Swt at 
c:/jruby-1.7.0.RC2/lib/ruby/gems/shared/
gems/swt-0.13/lib/swt/minimal.rb:11
                               (root) at 
c:/jruby-1.7.0.RC2/lib/ruby/gems/shared/
gems/swt-0.13/lib/swt/minimal.rb:6
                              require at org/jruby/RubyKernel.java:1019
                              require at 
c:/jruby-1.7.0.RC2/lib/ruby/shared/rubyg
ems/custom_require.rb:36
                               (root) at 
c:/jruby-1.7.0.RC2/lib/ruby/gems/shared/
gems/swt-0.13/lib/swt.rb:1
                              require at org/jruby/RubyKernel.java:1019
                              require at 
c:/jruby-1.7.0.RC2/lib/ruby/shared/rubyg
ems/custom_require.rb:60
                              require at 
c:/jruby-1.7.0.RC2/lib/ruby/shared/rubyg
ems/custom_require.rb:55
                               (root) at 
c:/jruby-1.7.0.RC2/lib/ruby/gems/shared/
gems/swt-0.13/lib/swt.rb:2
                              require at org/jruby/RubyKernel.java:1019
                              require at 
c:/jruby-1.7.0.RC2/lib/ruby/shared/rubyg
ems/custom_require.rb:36
                               (root) at C:/Ruby/shoes4/lib/shoes/swt.rb:1
                               (root) at -e:1

C:\Ruby\shoes4>
--------------------
Is this a jruby 1.7 rc2 quirck.
or is there someway i can fix this

I could try installing jruby 1.6

eelco

Re: [shoes] help needed with shoes4 sample

From:
ashbb
Date:
2012-10-16 @ 10:52
Hi eelco,

Ah, you are using jruby-1.7.0. Look at this error message:

> c:/jruby-1.7.0.RC2/lib/ruby/gems/shared/gems/swt-0.13/lib
> /swt/jar_loader.rb:9: Use RbConfig instead of obsolete
> and deprecated Config.

Try to replace everything from "Config::CONFIG" to "RbConfig::CONFIG" in
jar_loader.rb by hand.

Re: [shoes] help needed with shoes4 sample

From:
Catsquotl
Date:
2012-10-16 @ 11:12
Op 16-10-2012 12:52, ashbb schreef:
> Hi eelco,
>
> Ah, you are using jruby-1.7.0. Look at this error message:
>
> > c:/jruby-1.7.0.RC2/lib/ruby/gems/shared/gems/swt-0.13/lib
> > /swt/jar_loader.rb:9: Use RbConfig instead of obsolete
> > and deprecated Config.
>
> Try to replace everything from "Config::CONFIG" to "RbConfig::CONFIG" 
> in jar_loader.rb by hand.
Hi,

Thanks, I may try this.
But I tried to get purple_shoes first. That gave  almost the exact error 
message. It als pointed out some inconsistency using a 32bit something 
on a 64bit JVM. so I installed a 32bit version of the Javasdk.

I got the sound sample working and the purple_shoes manual to open..
So I guess I am good to go now.

Just in time for me to go to work too ;)

Eelco