Java fun Well, for starters you don't need to have both the JDK and the JRE installed. The JDK distribution includes the all the necessary programs and classes to run Java applications as well as the Java development tools. The JRE just includes the programs and classes needed to run Java applications. Since you have both you might as well keep the JDK and get rid of the extra JRE installation. I'll just talk about your JDK in /usr/java/jdk1.3.1_01 for the rest of this post. :-)
On to other things. The reason you couldn't find the classes when you used the find command is that they're all in a .jar file - a java archive. The majority of the Java runtime classes (including the Swing classes) are in:
/usr/java/jdk1.3.1_01/jre/lib/rt.jar
You can (if you're really interested) get a list of all the classes in the rt.jar file with:
jar -tf rt.jar
You'll see that JOptionPane is in there. Though it's better to use:
jar -tf rt.jar | grep JOptionPane
There are *alot* of classes. :-)
Okay, but let's see if we can at least make LimeWire start up.
1. Change to the LimeWire directory
2. Set a classpath like:
CLASSPATH=.:/usr/java/jdk1.3.1_01/jre/lib/rt.jar:LimeWire.jar:collections.jar; export CLASSPATH
3. Now try:
java RunLime
Hopefully LimeWire will appear asking you to configure it. Since it's in /usr/local/LimeWire you won't be able to write any files there as a normal user so just click cancel.
If all that works, edit the runlime.sh script to include the classpath line as above (say after the CONFIG_DIR=~/.limewire line).
Then edit the Last line to be simply: java RunLime
Anyway, give all that a try. Good luck!:-) |