Below is the portion that is throwing the error
File dir = fcd.getSelectedFile(); // file directory in which to compile all code
String[] cmdarray = {"javac *.java"};
try {
Process process = Runtime.getRuntime().exec(cmdarray,null,dir);
}
catch (IOException ex) {
ex.printStackTrace();
}
I'd prefer to use the wildcard instead of recursing through an ls or dir of the files in the pwd before running the actual command. If it's not possible to use *, is there a way to specify the file extension for all the files in the pwd?