Hi, I need your experts advice on something that I am doing now. I want to open a file which is in .class format using DJ Decompiler and copy the file into a java file using java program. Actually I want to get the directory as input and do this for all the files and files inside all the directories. How can I do this?
Now I have a code to open the DJ Decompiler and also to copy the files, but both are seperate. How to integrate them?
e.g. I have a folder D:/test in which I have .class files
D:/test/hello.class (There will be many files like this, but for now its 1)
This can be done using the command line decompilers for JAD, DJ Decompiler is just a fancy GUI that suits on top of the command line interface. From that, my guess the way this command line will work like will be something like "program.exe source.class destination.java", so thats not a problem as you could get an array of class names and in some sort of loop, deliver each class name to be decompiled. Or even better, the command line may be able to take a wildcard or do all files in a certain directory.
Also, are you aware that DJ Dompiler can manually do multiple files at once (Tooks>> Compiler...").