|
Register | FAQ | The Twelve Commandments | Members List | Calendar | Arcade | Find the Best VPN | Today's Posts | Search |
General Linux Support For questions regarding use of LimeWire or WireShare or related questions on the Linux operating system. This includes installation questions and answers. (Check the Stickies marked in Red at top of this section.) |
| LinkBack | Thread Tools | Display Modes |
| |||
Exception in thread "main" java.util.zip.ZipException First, I will describe the problem. I have successfully installed LimeWire and have run it once. The second time, and all subsequent times I tried running it, I get an exception in a thread. As instructed, I set the J2SE_PREEMPTCLOSE=1 flag by placing it in the "runLime.sh" script. I also had to add "ulimit -s 2048" due to a stack restriction conflict. Second, I will divulge the versions of software I am using. I have LimeWire 2.1.3, glibc 2.2.1, Sun's jre 1.3.1_02, and bash 2.05. Java is correctly in my path, and for integrity's sake, I reinstalled it fresh. I did the same for LimeWire. As for permissions, I installed LimeWire as root, and ran it as a user. After I got this error, I tried it as root to no avail. As for the zip part, I have Adler, Wales and Gailly Zip 2.2 installed. No, I do not have Kaffe; I know this because I personally built my system from scratch (LFS). The explicit error message reported from the console is below: Pluto:/home/greg $ /opt/LimeWire-2.1.3/runLime.sh Exception in thread "main" java.util.zip.ZipException: No such file or directory at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:110) at java.util.jar.JarFile.<init>(JarFile.java:115) at java.util.jar.JarFile.<init>(JarFile.java:57) Pluto:/home/greg $ Thanks, Greg |
| |||
Here's how I got my desktop link to work. I edited the runlime.sh file so that it looked something like the following. #!/bin/bash cd /home/home/LimeWire J2SE_PREEMPTCLOSE=1; export J2SE_PREEMPTCLOSE java -jar RunLime.jar (of course, your LimeWire installation will probably be in a different directory) After this change, making a link to this file should work. |
| |||
The desktop link still doesn't work. It looks like it all should. Below is the contents of my script verbatim. The ulimit is a fix for glibc 2.2 compatibility (so I am told). Below the script is the contents of the desktop link. I have it set to "run in a terminal" mode. Greg // begin runLime.sh #!/bin/bash # fixes for compatibility sake ulimit -s 2048 cd /opt/LimeWire-2.1.3 J2SE_PREEMPTCLOSE=1 export J2SE_PREEMPTCLOSE # original script CLASSPATH=".:collections.jar:xerces.jar:jl011.jar" export CLASSPATH java -jar RunLime.jar // end runLime.sh // begin limewire.desktop [Desktop Entry] Comment= Exec=/opt/LimeWire-2.1.3/runLime.sh Icon=/opt/kde/share/icons/hicolor/32x32/apps/lime.png Name=LimeWire Path=/opt/LimeWire-2.1.3/ Terminal=1 TerminalOptions= Type=Application X-KDE-SubstituteUID=false X-KDE-Username= // end limewire.desktop |
| |||
I'm not sure if this is a fix or not, but I always had problems running scripts in KDE which had blank lines in them. I now have a habit of deleting any blank lines and comments from all scripts. You might want to try it. |
| |||
That didn't work. The konsole comes up and disappears in a flash, so I think this has to do with working directories. However, I don't know how to make Konsole not exit so that I may see what error messages are coming up. If I run the script from any other directory as any other user from the command line, everything works fine. Oh well, Greg |
| |||
Hope this helps: Hi, 1) You might want to try hard-wiring the CLASSPATH in your runLime.sh, like so: CLASSPATH="/your/limewire/directory:/your/limewire/directory/collections.jar" ... and so on for the rest of the jar files. 2) Here's a generic runLime.sh that starts up in the correct directory every time, for any user, so you don't have to change it if you move the LimeWire directory... #!/bin/sh WD=`dirname $0` cd $WD CLASSPATH=".:collections.jar:xerces.jar:jl011.jar" export CLASSPATH java -jar RunLime.jar Hope this helps. -J. |
| |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
exception in thread "main" java.lang --- install problem | jiggm | General Linux Support | 4 | September 17th, 2003 07:12 AM |
Exception in thread "main" java.lang.NoClassDefFoundError: com/zerog/lax/LAX | pengu|nator | General Linux Support | 4 | December 13th, 2002 04:32 PM |
Exception in thread "main" java.lang.NoClassDefFoundError: com/zerog/lax/LAX | pengu|nator | General Linux Support | 0 | December 8th, 2002 06:35 AM |
Exception in thread "main" java.lang.NoClassDefFoundError: lax/nl/java/option/java/st | jllabres | General Linux Support | 6 | October 17th, 2002 06:26 PM |
Exception in thread "main" java.lang.NoClassDefFoundError: lax/nl/java/option/java/st | jllabres | General Linux Support | 2 | October 13th, 2002 03:06 AM |