Draft JEP: Launch Single-File Source-Code Programs

Volker Simonis volker.simonis at gmail.com
Fri Feb 9 10:51:23 UTC 2018

Hi Jonathan,

that's an interesting proposal. It is just unfortunate that a Java
source file starting with "shebang" won't be a legal Java file
according to the Java Language Specification. Or do you plan to change
the JLS to allow (and ignore) "shebang" in the first line?


On Fri, Feb 9, 2018 at 12:18 AM, Jonathan Gibbons
<jonathan.gibbons at oracle.com> wrote:
> This draft JEP contains a proposal to enhance the java launcher to support
> running a
> program supplied as a single file of Java source code. The program will be
> compiled
> and run, without the need to explicit invoke javac, or to package up a jar
> file.
> For more details, see:
> http://openjdk.java.net/jeps/8192920
> -- Jon

More information about the jdk-dev mailing list