Well, whatever the reason, I got these requirements, so I decided to make a Java application. However, I had never made an application in Java before, and when I was wondering what to do, there was something called JRuby, so it was better to use it, so I decided to do so. JRuby? As the name suggests, JRuby seems to be a Java + Ruby language (I don't know the details).
It seems that you can finally make something that works (jar file) by double-clicking the icon.
https://dev.classmethod.jp/etc/jruby_warbler_ruby_source_create_jar/ For the time being, you should be able to follow this procedure.
When I tried it, I was able to go safely