I want to make an ide that is offline, I can write the java programs in textArea in UI and then save those files in sd-card, but the problem is that I am not able to execute it using this "Process process = Runtime.getRuntime().exec(command);" And many apps are doing this so I need the way to do this.
There are several .java files placed in a folder(test) in sd-card, is there any way that I can compile and run that java code from an app at run time.
Like converting .java files into a .dex file so that Android can read it.
I want to know how it can be done programmatically I have read several answers like "Is it possible to dynamically load a library at runtime from an Android application?" "Creating a DEX file from Java source code"
but nothing is working. I want some jar files or some method that can do this job for me.