I'm sorry, i meant the path /usr/java! I somehow miss-typed that. Apologies. Anyway
and take a look at this:
$ whereis java
java: /usr/bin/java /usr/share/java
$ ls -l /usr/bin/java
lrwxrwxrwx 1 root root 22 Jul 5 21:12 /usr/bin/java -> /etc/alternatives/java*
$ ls -l /etc/alternatives/java
lrwxrwxrwx 1 root root 23 Jul 5 21:12 /etc/alternatives/java -> /usr/bin/gcj-java-3.3.2*
That's just a messy system of linking...
Either of the /usr/bin/j2*/bin/java work on my other programs that use javax.swing.JFrame, but somehow javax.swing.JOptionPane isn't working.. maybe i don't have it?
*edit, ok.. here's what i found out: I compiled it with javac which is in the same path above (doing the 'whereis'), and when i recompiled the .java file (any) with the javac found in the /usr/java/j2sdk--/bin/javac and then ran it with the java in the same folder it worked! so my other java thing must just not be... good? Anyway thank you for all of your help (i would not have been able to get it myself)! :-D I will redo the links in /etc/bin when i have time later (for now i have bash aliases set).