- Aug 16, 2002
- 680
- 0
- 0
First, it's not really my program, a friend of mine is having troubles and he asked me for help, but my solution isn't working. Basically, he just wants to execute different programs/scripts from one java program. He's running linux. We tried this:
private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {
Runtime.getRuntime().exec("/usr/local/bin/ballsmacker");
}
But it gives this error:
funnny.java [119:1] unreported exception java.io.IOException; must be caught or declared to be thrown
Runtime.getRuntime().exec("/usr/local/bin/ballsmacker");
private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {
Runtime.getRuntime().exec("/usr/local/bin/ballsmacker");
}
But it gives this error:
funnny.java [119:1] unreported exception java.io.IOException; must be caught or declared to be thrown
Runtime.getRuntime().exec("/usr/local/bin/ballsmacker");
