[UPDATE: I found the answer and posted it in the comments.]
Hello, what is the convention for loading JAR files in a JRuby app on Heroku using Rails 4?
The top answer from an old Stack Overflow question says this:
Using default Heroku configuration, you cannot simply add your own jar. You can workaround this by build a gem that packages your JAR.
I'm guessing that putting JAR files in gems not necessary since I haven't seen that mentioned anywhere else for Heroku JRuby apps.
There's a good explanation of adding Ruby files to the Rails 4 load path on this Stack Overflow question but what needs to change for JAR files?
Will heroku allow a /jars directory under /lib and add the following line to application.rb?
Any advice is greatly appreciated!
Yes, the method worked for me was to create a /jars directory under /lib and add the following line to application.rb: