+ 1
Can anyone make program in java that can write and run another java program?
Meta programming
3 Réponses
+ 3
you could simply put your code in a string and let one program write it into a file and compile it etc
0
As far as I know, it cannot directly do that, though it may be possible to do it by sending orders to the OS.
If you are interested in meta programming, i would suggest you start with non-compiled languages
- 1
I mean can my java program compile it to bytecode and run?