Well, javac -version works, and it sorta looks like it doesn't work.
Here's what I get when I do it locally:
So, it works, but it spits out usage information, because it wants you to know that javac is supposed to be used to compile your code. But, it does indeed work!
Check out the Java
applets on this page. There are AWT and Swing Applets. If you look at the SwingSet, you'll see plenty of lists and trees!
Java Applets - Web Based Swing for the Sun Associcates Exam -Cameron McKenzie