Following procedures must use linux or WSL on windows because there are errors related to gem installation if run on windows. I believe we still can do bundle install on windows for Jruby 9.4.0.0 and Rails 7.0.4 on last experiment at 2023. The war file produced can be used on any java 8+ supported platfom (theoretically).
Specify on your rails Gemfile as follow (using the latest warble gem available now) :

Run bundle install.
Run bundle exec warble.
Deploy the war file produced by warble to tomcat 9 (can not use tomcat 10/11).
Use deploy on tomcat 9 manager. Upload war may not work if war file size is too big.

If deployed successfully, check your application on browser.
If we want a executable war then do bundle “exec warble executable war”.
Execute the war as below :
java -Dorg.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.StdErrLog -Dorg.eclipse.jetty.util.log.stderr.ESCAPE=false -jar my_app.war
Thank you !








