I have to implement javap -verbose from within a java program, the directory named folder has multiple classes and i want to use this javap -verbose on all of them so i do,
Process p = Runtime.getRuntime().exec("javap -verbose folder/*");
in my java program but it does not work(Program compiles and runs but no output is obtained), However when i do
Process p = Runtime.getRuntime().exec("javap -verbose folder/java_1.class");
it runs(and output is obtained). Also if I do
javap -verbose folder/*
on the command line it works. I am using latest version of Ubuntu. How can i apply javap on all the files of a directory. Note: folder has no sub-directory.