The implementation of the JEP 330: Launch Single-File Source-Code Programs available from Java 11 allows us to write a script in Java and run it as a shebang file. This is very useful for developers like me, who are not very familiar with scripting with other languages like bash or python.
In this post, I���ll show you how to write a single-file script in Java and run it from the command line. As an extra topic, you���ll learn how to put this file in a Docker image for even easier...
Published on February 09, 2020 22:00