Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > LimeWire+WireShare (Cross-platform) > Technical Support > General Linux Support
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

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.)


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old January 30th, 2002
Unregistered
Guest
 
Posts: n/a
Default 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
Reply With Quote
  #2 (permalink)  
Old January 30th, 2002
Unregistered
Guest
 
Posts: n/a
Default

cd to the limewire dir first and then start the runlime.sh. Or write a cd /usr/local/limewire in the runlime.sh file.
Worked for me
Reply With Quote
  #3 (permalink)  
Old January 30th, 2002
Novicius
 
Join Date: January 30th, 2002
Posts: 3
yourfriendgregd is flying high
Default

That did it.

However, that works if I am in a terminal. It does not work if I try to make a desktop link (in KDE) and try to run it, even if I put "cd /LimeWireDir" in the run script.

Thanks,
Greg
Reply With Quote
  #4 (permalink)  
Old January 31st, 2002
Gnutella Admirer
 
Join Date: September 3rd, 2001
Posts: 63
HeadHolio is flying high
Default

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.
Reply With Quote
  #5 (permalink)  
Old January 31st, 2002
Novicius
 
Join Date: January 30th, 2002
Posts: 3
yourfriendgregd is flying high
Default

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
Reply With Quote
  #6 (permalink)  
Old January 31st, 2002
Gnutella Admirer
 
Join Date: September 3rd, 2001
Posts: 63
HeadHolio is flying high
Unhappy

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.
Reply With Quote
  #7 (permalink)  
Old January 31st, 2002
Novicius
 
Join Date: January 30th, 2002
Posts: 3
yourfriendgregd is flying high
Default

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
Reply With Quote
  #8 (permalink)  
Old February 3rd, 2002
Unregistered
Guest
 
Posts: n/a
Default 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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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 06:12 AM
Exception in thread "main" java.lang.NoClassDefFoundError: com/zerog/lax/LAX pengu|nator General Linux Support 4 December 13th, 2002 03:32 PM
Exception in thread "main" java.lang.NoClassDefFoundError: com/zerog/lax/LAX pengu|nator General Linux Support 0 December 8th, 2002 05:35 AM
Exception in thread "main" java.lang.NoClassDefFoundError: lax/nl/java/option/java/st jllabres General Linux Support 6 October 17th, 2002 05:26 PM
Exception in thread "main" java.lang.NoClassDefFoundError: lax/nl/java/option/java/st jllabres General Linux Support 2 October 13th, 2002 02:06 AM


All times are GMT -7. The time now is 04:36 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.