buf = new StringBuilder(100); if (file.endsWith(".pde")){ buf = new StringBuilder(100); buf.append(processing); buf.append(cmd); buf.append(" --sketch=").append(pde.replace(" ", "\\ ")); if(force){ buf.append(" --force --output=").append(output); } else{ buf.append(" --output=").append(output); } if (cmd.equals(" --export")){ buf.append(" --platform=").append(platform); if (bit){ buf.append(" --bits=64"); } else{ buf.append(" --bits=32"); } } } else{ throw new RuntimeException("Save the sketch first in a folder, bearing the same name!!!!"); } buf.toString();