Ok, so basically, I wrote a java program that creates new java classes within the same folder as my current program. So far, that part works absolutely fine since it's just basically creating new text files. What I would like to know though, is if there is a way to run those created classes within the program without terminating the running program that created them. So, basically, I want to write a program that creates, edits, and runs java programs. Is there any method, function, API, that helps to do something like this?
Also, I'm using eclipse to do this.
What I would actually try to do in that case without using external APIs, is to run cmd commands from Java.
In that case you can compile the created Java files and then run the .jar file for example, using terminal commands once more..
For cmd commands through Java you can refer to this link: Run cmd commands through java
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With