I had the same problem when I run in Ubuntu 11.10 and netbeans. When I try to run the jar file using the terminal (with sudo permissions) it worked. I think the issue is with permissions in linux.
Try running the .jar file in the terminal sudo java -jar YourJarFile.jar