Compile and start java file in bash without saving compiled file -
is possible compile , run java file in bash without saving compiled file? i'm using command javac file.java && java file
. works creates file.class
file.
can somehow pipe compiled file java command? have tried javac file.java | java
not work.
to knowledge, not possible, , doesn't make sense.
you see, jvm comes many megabytes of precompiled classes; , many of them loaded while running small class. there no point in saving 1 k or whatever file.class consumes on disk space.
so should step , re-think kind of problem think can solve such approach.
Comments
Post a Comment