Forum: JRuby JRuby debug problem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
426b7f4b7c8cf3c9f0ba3ff9ad941772?d=identicon&s=25 Roger Jack (Guest)
on 2013-07-22 16:37
(Received via mailing list)
I'm having a problem with the jruby debugger and SWT. The app that I'm
trying to debug works fine in non-debug mode or jirb. I'm running on
Windows 7 with 64-bit version of Java and JRuby. Here is the output from
the session:

C:\Users\Roger\Documents\GitHub\shoes4\lib>jruby --1.9 --debug -r debug
junk2.rb

Debug.rb
Emacs support available.

junk2.rb:1:require 'java'
(rdb:1) n
junk2.rb:2:require 'swt'
(rdb:1) n
file:/C:/jruby-1.7.4/lib/jruby.jar!/jruby/java/java_package_module_template.rb:1
4: `cannot load Java class org.eclipse' (NameError)
         from
C:/jruby-1.7.4/lib/ruby/shared/rubygems/custom_require.rb:1:in `(root)'
         from
C:/jruby-1.7.4/lib/ruby/shared/rubygems/custom_require.rb:36:in
`require'
         from
C:/jruby-1.7.4/lib/ruby/gems/shared/gems/swt-0.16/lib/swt.rb:2:in
`require'
         from
C:/jruby-1.7.4/lib/ruby/gems/shared/gems/swt-0.16/lib/swt.rb:2:in
`(root)'
         from
C:/jruby-1.7.4/lib/ruby/shared/rubygems/custom_require.rb:1:in `(root)'
file:/C:/jruby-1.7.4/lib/jruby.jar!/jruby/java/java_package_module_template.rb:1
4:
(rdb:1)

Any suggestions? Thanks!
F1d37642fdaa1662ff46e4c65731e9ab?d=identicon&s=25 Charles Nutter (headius)
on 2013-07-24 00:36
(Received via mailing list)
Hmm...sounds like something in our magic Java package logic is
probably mucking up debug.rb. Can you file an issue for this and we'll
investigate there?
8db112f19ce0a69c7e490bbf27256346?d=identicon&s=25 Tobias Pfeiffer (Guest)
on 2013-07-24 02:07
(Received via mailing list)
Thanks Roger for posting this here!

Can you please post a link for that issue, I'd link to keep up with it
and provide shoes4 specific knowledge etc. if needed.

Just for reference, same thing happens for me with JRuby 1.7.4 on Linux
64 Bit, OpenJDK 6.
426b7f4b7c8cf3c9f0ba3ff9ad941772?d=identicon&s=25 Roger Jack (Guest)
on 2013-07-24 14:34
(Received via mailing list)
I have opened an issue:

https://github.com/jruby/jruby/issues/908

*Roger Jack*
This topic is locked and can not be replied to.