I'm working with some legacy code and have to remake a software module. The module previously used Runtime.exec() for things such as making a directory, removing a directory, unzipping a file, and copying files. The software runs on Linux servers and most probably will always run on a Linux server.
Now that I'm making the module from scratch, I'm thinking of using native Java functions for accomplishing all this. Keeping the project requirements/dependencies aside for a moment, is there any advantage/disadvantage of doing it this way? tweakbox.mobi getappvalley.com vlc.onl
I'd use java.nio.files (not java.io). But I guess Runtime.exec will probably consume less memory and work faster than java code. Unix-based systems: fork()+exec() vs posix_spawn() custom writing
burnard baker
burnard baker
So the way I've handled it now (using exec for the part I've coded so far), I read the error stream from the command and throw an exception if it's not empty, moreover Other than making it throw its own exceptions. vnvideoeditorpc.com