S
Stefan Ram
Why does Sun not include a program »jrun« in the JDK that
takes a Java source file path as its argument, then compiles
this in-memory and starts the result (assuming there were no
compile-errors and the source has a static main method)?
This will come in handy for programmers sometimes and will
make starting a first »hello, world!« application easier for
beginners.
Why do they not associate such a program with .java-Files?
Then, you could simply »run« java source files like batch files.
(Yes, I know how to implement this myself. But the idea seems
so natural that I wonder why it not already has been done by
Sun long ago.)
takes a Java source file path as its argument, then compiles
this in-memory and starts the result (assuming there were no
compile-errors and the source has a static main method)?
This will come in handy for programmers sometimes and will
make starting a first »hello, world!« application easier for
beginners.
Why do they not associate such a program with .java-Files?
Then, you could simply »run« java source files like batch files.
(Yes, I know how to implement this myself. But the idea seems
so natural that I wonder why it not already has been done by
Sun long ago.)