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

How do I use JRuby along with Ruby 2.2.3? #3746

Closed
AbhimanyuAryan opened this issue Mar 19, 2016 · 2 comments
Closed

How do I use JRuby along with Ruby 2.2.3? #3746

AbhimanyuAryan opened this issue Mar 19, 2016 · 2 comments

Comments

@AbhimanyuAryan
Copy link

screen shot 2016-03-19 at 5 53 48 am

@kares
Copy link
Member

kares commented Mar 19, 2016

all seems well - not sure what you've expected by require 'java' in zsh - just use it like 🔢 a Ruby 🍻

@kares kares closed this as completed Mar 19, 2016
@kares kares added this to the Invalid or Duplicate milestone Mar 19, 2016
@AbhimanyuAryan
Copy link
Author

@kares

yaa it worked.. I got little confused as I was following this link: http://rubylearning.com/satishtalim/jruby_tutorial.html

# javaSwingHello.rb  
require 'java' # Line 2  
JFrame = javax.swing.JFrame  
JLabel = javax.swing.JLabel  
frame  = JFrame.new  
jlabel = JLabel.new("Hello World")  
frame.add(jlabel)  
frame.setDefaultCloseOperation(JFrame::EXIT_ON_CLOSE)  
frame.pack  
frame.setVisible(true) 

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

2 participants