JRuby 9.4.14 on Rails 7.2.2.2 app war deployed on Tomcat 9

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 !

Cmd Space

Just know that Cmd + Space also work on IPhone where originally thought that ist only work on MacBook.

MT4 / Metatrader 4 for MacOS is draining battery

hi guys for Metatrader 4 user on MacOS be aware that after the program exit we need to force quit a process called “wine32on64-preloader”.

This is because the process will exist and use your cpu all the time and drain the battery even after MT4 exit.

Rails 7 on Jruby 9.4.0.0

Step to do :

  1. Install Jruby
  2. run jruby -S gem install rails
  3. run jruby -S rails new App
  4. Step 3 will fail miserably related to bindex gem.
  5. Open Gemfile and comment out web-console gem.
  6. Go to your App folder and run jruby -S bundle install
  7. run jruby -S rails server
  8. Browse localhost:3000 to view rails welcome page.