It's probably very simple, but all of my Google results are back with JRuby, which I don't want to know. I'm curious if a regular Ruby application (such as a Rails application or a Sinatra application) can somehow make a link and call the Java library that is in the classpath? Ideally one that works on Geroku.
Not directly. Java libraries run in Ruby JVM applications on their own virtual machine. If you want these two people to communicate, you need to create some kind of communication channel between them (there are various solutions, see Fe http://code.google.com/p/activemessaging/ ).
I managed to call my Java program, like this from a Rails controller:
system "java -cp postgresql-9.0-801.jdbc4.jar:./ Main"
A few notes:
You can execute the command block in the ruby (jruby) file line:
importString = <<-eos java -version ls -l eos exec importString
This is fine for a Mac, but Windows jruby has some limitations.
Source: https://habr.com/ru/post/1347792/More articles:How to import .AVI files? - wolfram-mathematicaFileMaker 11 PHP and ODBC new line / carriage return - phpAndroid video thumbnail? - androidRegular expression for a specific number - regexIs WatiN unreliable for repeated downloads? - c #Enable the module with or without sending, is there a difference? - ruby | fooobar.comhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1347794/what-units-to-pass-ui-methods&usg=ALkJrhgYXQrbhU_mNJGIjGHNOvR20MSVZgA python way to avoid mountainous words if ... else? - pythonProblems with the "x" in the center of the circle using XAML - wpfSwing progress bar (Java) for command tools - javaAll Articles