0
Is it possible to run a file with Java code only? I don't mean to read and write but actually running it.
4 Respuestas
+ 2
If you have the byte code then it is possible because .java file has to be first compiled to get a .class file which can be executed on any OS dependent JVM.
Also only JRE is enough to run or execute an already compiled code.
+ 2
Eliya Ben Baruch
I guess you mean something like this:
https://stackoverflow.com/questions/10685893/run-exe-file-in-java-from-file-location
I would search for "run exe file with java" on google.
+ 1
Denise Roßberg Thanks I will look later
0
Avinesh
No, I meant to run for example an .exe file but with Java code, to write a program which will do it.