SyntaxFix
Write A Post
Hire A Developer
Questions
it seems that you should set your command as an String[],for example:
String[]
String[] command = new String[]{"rmiregistry","2020"}; Runtime.getRuntime().exec(command);
it just like the style of main(String[] args).
main(String[] args)