Questions tagged [jruby-java-interop]

32 questions
0
votes
1 answer

explicitly override a Java method in Jruby?

Is there an explicit way to override a Java method in JRuby-subclass? public class Yours { public String hi() { return "Hello original"; } } In a Java I'd use @override to make subclassing explicit. public class Mine extends Yours { …
inger
  • 19,574
  • 9
  • 49
  • 54
0
votes
0 answers

Not able to load my custom java classes in JRuby

I have created one java project. Folder structure is like Test - src -TestJavaCall.java I created jar of this prject test.jar. Code in my ruby file is as follows. include Java require '/home/office/test.jar' java_import Java::TestJavaCall …
sumit
  • 189
  • 3
  • 11
1 2
3