import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
+import javax.swing.JOptionPane;
/**
* Contrôle que les tables ont la bonne structure, et corrige si nécessaire
url.append("mailto:").append(ADDR).append("?subject=Re-Patch base&body=").append(URLEncoder.encode(errorBuffer.toString(),"UTF-8"));
StartUrl.startUrl(url.toString());
} catch(Throwable t) {
+ JOptionPane.showMessageDialog(null, "Impossible d'envoyer le compte-rendu d'anomalies:\nVous pouvez envoyer le texte suivant par mail à cette adresse : "+ADDR+"\n"+errorBuffer.toString(), "Erreurs", JOptionPane.ERROR_MESSAGE);
System.err.println("Impossible d'envoyer le compte-rendu d'anomalies:");
System.err.println("Vous pouvez envoyer le texte suivant par mail à cette adresse : "+ADDR);
System.err.println(errorBuffer.toString());
}
System.out.println("Pour information, les travaux suivants ont été efféctués: "+code);
System.out.println(job.toString());
- System.out.println("Appuyez sur <ENTREE> pour terminer.");
- try {
- new BufferedReader(new InputStreamReader(System.in)).readLine();
- } catch(Throwable t) {}
+// System.out.println("Appuyez sur <ENTREE> pour terminer.");
+// try {
+// new BufferedReader(new InputStreamReader(System.in)).readLine();
+// } catch(Throwable t) {}
+ JOptionPane.showMessageDialog(null, "Pour information, les travaux suivants ont été efféctués: "+code+"\n"+job.toString());
System.exit(code);
}