I have redone the ruby portion of this homework over and over and I keep
receiving the following error message:

 

C:/Program Files/NetBeans
6.5/ruby2/ruby_passion/5520_ruby_jruby/ruby_jruby/samples/JRuby_ComputeJavaL
ibrary/lib/main.rb:4: uninitialized constant Java (NameError)

 

The java portion of the code had a successful build.  The following is the
ruby code:

 

# To change this template, choose Tools | Templates

# and open the template in the editor.

 

include Java

 

include_class 'mypackage.Compute'

 

puts "----Create an object from the Compute Java class"

c = Compute.new

 

puts "----Invoke methods from Compute object"

 

puts "-----Add"

c.add(3, 4)

 

puts "-----Subtract"

c.subtract(5, 3)

 

I could find nothing on google to decipher the solution for the error
message.   Just point me in the right direction.

 

 

Charles E. O'Riley Jr.

ceo'riley

 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "ruby-on-rails-programming-with-passion" group.
To unsubscribe from this group, send email to
ruby-on-rails-programming-with-passion-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ruby-on-rails-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

<<inline: image001.jpg>>

Reply via email to