Draft JEP: Launch Single-File Source-Code Programs
David Lloyd
david.lloyd at redhat.com
Mon Feb 12 21:37:45 UTC 2018
On Thu, Feb 8, 2018 at 5:18 PM, 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
It was pointed out on IRC that it would seem almost more fitting to
fit this in to javax.script as a ScriptEngine, using the existing
jrunscript as a launcher instead of java. Weird but also not weird at
all!
It would be worth explaining why this shouldn't be the case in the JEP
(if indeed it shouldn't be the case).
--
- DML
More information about the compiler-dev
mailing list