I am trying to package a simple JRuby script into a jar file. The script uses Rubeus::Swing and runs correctly when executed with the JRuby interpreter.
Just set the appropriate flag:
System.setProperty("warbler.skip_system_exit","true");