Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- thufir@dur:~$
- thufir@dur:~$ java -jar NetBeansProjects/Skype/dist/Skype.jar
- Exception in thread "main" java.lang.IllegalThreadStateException: process hasn't exited
- at java.lang.UNIXProcess.exitValue(UNIXProcess.java:217)
- at net.bounceme.dur.skype.Skype.main(Skype.java:14)
- thufir@dur:~$
- thufir@dur:~$ cat NetBeansProjects/Skype/src/net/bounceme/dur/skype/Skype.java
- package net.bounceme.dur.skype;
- import java.io.IOException;
- import java.util.logging.Level;
- import java.util.logging.Logger;
- public class Skype {
- private static final Logger log = Logger.getLogger(Skype.class.getName());
- public static void main(String args[]) throws IOException {
- Runtime rt = Runtime.getRuntime();
- Process proc = rt.exec("uname -a");
- int exitVal = proc.exitValue();
- System.out.println("Process exitValue: " + exitVal);
- }
- }
- thufir@dur:~$
Advertisement
Add Comment
Please, Sign In to add comment