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

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -