Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JRuby debug problem #908

Closed
rjack1201 opened this issue Jul 24, 2013 · 2 comments
Closed

JRuby debug problem #908

rjack1201 opened this issue Jul 24, 2013 · 2 comments

Comments

@rjack1201
Copy link

I'm having a problem with the jruby debugger and SWT and Charles Nutter suggested that I open an issue here. 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:inrequire'
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)

@PragTob
Copy link

PragTob commented Jul 24, 2013

Hi there,

thanks a ton for opening this issue!

Could you please post junk2.rb?

Just for reference, I'm having the same problem and am on Linux 64 Bit, OpenJDK6, JRuby 1.7.4.

@rjack1201
Copy link
Author

Here are the contents of junk2.rb which I ran from the lib directory:

require 'java'
require 'swt'
require 'shoes'
#binding.pry
require 'shoes/configuration'
Shoes.configuration.backend = :swt;
require '../samples/sample99'

@kares kares closed this as completed Jan 10, 2016
@kares kares added this to the Invalid or Duplicate milestone Jan 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants