loader.selectedFile = new File(args[0]);
ErlangApplicationLoader.zapErlFiles(loader.selectedFile);
if (loader.loadData() && loader.modules.getModel().getSize() != 1)
{
ListModel modules = loader.modules.getModel();
StringBuffer tooManyException = new StringBuffer("more than a single module choice for app "+loader.selectedFile+"\n");
for(int i=0;i<modules.getSize();++i)
{
tooManyException.append(modules.getElementAt(i));tooManyException.append('\n');
}
throw new IllegalArgumentException(tooManyException.toString());
}
loader.modules.setSelectedIndex(0);
loader.beginButtonActionPerformed(null);