/* run the conversion routine, convert files in dir object, place the converted in dest */
ConsoleMain cm = new ConsoleMain();
ConsoleMain.ConversionObjects cb = cm.new ConversionObjects();
String filename = null;
File dir = new File(jp.getName());
for(int i = 0; i < dir.listFiles().length; i++){
File file = dir.listFiles()[i];
if(file.isFile()){
filename = file.getName().substring(0, file.getName().lastIndexOf('.'));
cb.setFileName(filename);
cb.setInputStream( file.getPath() );
cb.doConversion();
cb.writeToFile(dest.getPath() + "/" + filename + ".java" );
}
}