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 May 16th, 2002
Unregistered
Guest
 
Posts: n/a
Default java.util.zip.ZipException: No such file or directory

Greetings.

I had been happily using LimeWire 2.3 on my Linux system for some time without problems. (So yes, I have the correct JRE installed, etc.) Today I downloaded and installed version 2.4. Here's what I get when I try to execute the program:

Quote:
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)
Obviously this error message would be much more useful if it told me exactly which file or directory LimeWire couldn't find. All my file permissions are set the same as they were for the previous version. Anyone encounter this problem before?
Reply With Quote
  #2 (permalink)  
Old May 18th, 2002
nDiScReEt's Avatar
_eLeCtRiFyInG MeMbRr_
 
Join Date: May 9th, 2002
Location: Chicago
Posts: 232
nDiScReEt is flying high
Default Re: java.util.zip.ZipException: No such file or directory

Quote:
Originally posted by Unregistered
Greetings.

I had been happily using LimeWire 2.3 on my Linux system for some time without problems. (So yes, I have the correct JRE installed, etc.) Today I downloaded and installed version 2.4. Here's what I get when I try to execute the program:



Obviously this error message would be much more useful if it told me exactly which file or directory LimeWire couldn't find. All my file permissions are set the same as they were for the previous version. Anyone encounter this problem before?
I was able to replicate your error above. You are getting that error because you are not executing the file from within the correct directory of the executing jar file (LimeWire.jar) or the file that you are using to execute the file in the directory isn't pointing to the right place (symlink named "runLimeWire").

example:

"ls" produces this ouput:

.
..
LimeWire/
LimeWireSrc/

"ls LimeWire" produces this output:

.
..
LimeWire
LimeWire.jar
LimeWire.lax

"java -jar LimeWire.jar" produces this output:

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:112)
at java.util.jar.JarFile.<init>(JarFile.java:117)
at java.util.jar.JarFile.<init>(JarFile.java:55)


Similiar output as your own (debatebly almost exact). Now when I move to the correct directory, "cd LimeWire", and then run the command again, "java -jar LimeWire.jar", the program runs correctly.

altoine

Last edited by nDiScReEt; May 18th, 2002 at 12:15 AM.
Reply With Quote
  #3 (permalink)  
Old May 18th, 2002
Unregistered
Guest
 
Posts: n/a
Default Re: Re: java.util.zip.ZipException: No such file or directory

Quote:
Originally posted by nDiScReEt
I was able to replicate your error above. You are getting that error because you are not executing the file from within the correct directory of the executing jar file (LimeWire.jar) or the file that you are using to execute the file in the directory isn't pointing to the right place (symlink named "runLimeWire").
Nope. I've got a shell script which changes to the correct directory and executes the runlime.sh script provided with the installation. Even running runlime.sh manually from the command line produces the same error.

Interestingly, I can run LimeWire by just typing "java -jar RunLime.jar", but then I get a whole slough of errors (mostly FileNotFoundException) printed to the console:

Quote:
%java -jar LimeWire.jar
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*p-*-adobe-fontspecific]
FileNotFoundException: META-INF/MANIFEST.MF
FileNotFoundException: xml/display/audio.props
FileNotFoundException: xml/display/video.props
FileNotFoundException: xml/misc/server.props
FileNotFoundException: xml/schemas/audio.xsd
FileNotFoundException: xml/schemas/video.xsd
FileNotFoundException: META-INF/MANIFEST.MF
FileNotFoundException: ads/5590867.gif
FileNotFoundException: ads/ads.props
FileNotFoundException: ads/advertise.gif
FileNotFoundException: ads/Banner1-468x60.gif
FileNotFoundException: ads/Banner10-468x60.gif
FileNotFoundException: ads/Banner9-468x60.gif
FileNotFoundException: ads/directdsl.gif
FileNotFoundException: ads/fc468x60_1.gif
FileNotFoundException: ads/ipod2.gif
FileNotFoundException: ads/limeshop.gif
FileNotFoundException: ads/Maternatemp1.gif
FileNotFoundException: ads/Omnipotemp1.gif
FileNotFoundException: ads/paypal.gif
FileNotFoundException: ads/ringingphone.gif
FileNotFoundException: ads/upgrade.gif
java.io.FileNotFoundException: lib/Cookies.dat (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.j ava:102)
at java.io.FileOutputStream.<init>(FileOutputStream.j ava:62)
at com.limegroup.gnutella.util.FileUtils.writeMap(Unk nown Source)
at com.limegroup.gnutella.security.Cookies.save(Unkno wn Source)
at com.limegroup.gnutella.RouterService.shutdown(Unkn own Source)
at com.limegroup.gnutella.gui.Finalizer.shutdown(Unkn own Source)
at com.limegroup.gnutella.gui.GUIMediator.shutdown(Un known Source)
at com.limegroup.gnutella.gui.GUIMediator.close(Unkno wn Source)
at com.limegroup.gnutella.gui.MainFrame$1.windowClosi ng(Unknown Source)
at java.awt.Window.processWindowEvent(Window.java:812 )
at javax.swing.JFrame.processWindowEvent(JFrame.java: 237)
at java.awt.Window.processEvent(Window.java:788)
at java.awt.Component.dispatchEventImpl(Component.jav a:2593)
at java.awt.Container.dispatchEventImpl(Container.jav a:1213)
at java.awt.Window.dispatchEventImpl(Window.java:926)
at java.awt.Component.dispatchEvent(Component.java:24 97)
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 339)
at java.awt.EventDispatchThread.pumpOneEventForHierar chy(EventDispatchThread.java:131)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:98)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:85)
Given that the LimeWireLinux.tgz available for download does not have any of the files mentioned above, my working theory is that someone forgot to recurse directories when making the tarball...
Reply With Quote
  #4 (permalink)  
Old May 18th, 2002
Unregistered
Guest
 
Posts: n/a
Default Re: Re: Re: java.util.zip.ZipException: No such file or directory

Quote:
Originally posted by Unregistered
Interestingly, I can run LimeWire by just typing "java -jar RunLime.jar"
Oops... that should read "java -jar LimeWire.jar", of course.
Reply With Quote
  #5 (permalink)  
Old May 18th, 2002
Unregistered
Guest
 
Posts: n/a
Lightbulb Re: Re: Re: Re: java.util.zip.ZipException: No such file or directory

Quote:
Originally posted by Unregistered

Oops... that should read "java -jar LimeWire.jar", of course.
That too if the person isn't using the jar file that they are referencing in their message above. But you are right as it is LimeWire.jar now that I slowed down to think about it. thanks

altoine
Reply With Quote
  #6 (permalink)  
Old May 18th, 2002
nDiScReEt's Avatar
_eLeCtRiFyInG MeMbRr_
 
Join Date: May 9th, 2002
Location: Chicago
Posts: 232
nDiScReEt is flying high
Default Re: Re: Re: Re: Re: java.util.zip.ZipException: No such file or directory

Quote:
Originally posted by Unregistered


That too if the person isn't using the jar file that they are referencing in their message above. But you are right as it is LimeWire.jar now that I slowed down to think about it. thanks

altoine
A quote on top of a quote. Let us go through the questioning process first before we next go for any further suggestions.

1.) What shell environment are you using (bash, czsh, ksh)?

2.) What is the script that you actually use? Can you please cut & paste it here?

3.) What is the output of your path? Type this command and pleae post it here:

echo $PATH

4.) What LimeWire package are you using (tgz or bin)?

5.) What glibc and GNU compiler are you using? Try this command to see:

rpm -qa | grep glibc & rpm -qa | grep libgc

6.) What is in your "/usr/bin" directory? Try this command to find out:

ls /usr/bin/j*

7.) What output do you get when you use this command? (Pleae post it here):

echo $JAVA_HOME

8.) If you want to try one of my solutions before I try the above, try this link:

http://www.gnutellaforums.com/showth...threadid=11187

HTH
altoine
Reply With Quote
  #7 (permalink)  
Old May 18th, 2002
Unregistered
Guest
 
Posts: n/a
Default Re: Re: Re: Re: Re: Re: java.util.zip.ZipException: No such file or directory

Greetings.

I'm the OP. Here are the answers to your troubleshooting questions... you can assume you're talking to someone with a reasonable amount of Unix experience.

Quote:
Originally posted by nDiScReEt
1.) What shell environment are you using (bash, czsh, ksh)?
czsh? That's a new one for me... I'm using tcsh.

Quote:
2.) What is the script that you actually use? Can you please cut & paste it here?
Nothing special:

#!/bin/tcsh
cd /usr/local/LimeWire
sh runlime.sh >& /dev/null &

This script is called /usr/bin/limewire.

Quote:
3.) What is the output of your path?
/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/usr/games

Quote:
4.) What LimeWire package are you using (tgz or bin)?
The tarball -- I already mentioned this.

Quote:
5.) What glibc and GNU compiler are you using?
glibc-devel-2.2.4-6mdk
glibc-2.2.4-9.1mdk

Quote:
6.) What is in your "/usr/bin" directory?
I have /usr/bin/java, which is a symlink to the jre1.3.1 Java wrapper script.

Quote:
7.) echo $JAVA_HOME
I don't have this environment variable defined.

Keep in mind that everything was working perfectly for me for LimeWire 2.3. In fact, I can still run 2.3 (which I have in a backup directory) without any problems. It's just 2.4 that won't run. Again, all file and directory names and permissions are unchanged from the previous installation.

Many thanks for any insights you may be able to offer.
Reply With Quote
  #8 (permalink)  
Old May 24th, 2002
nDiScReEt's Avatar
_eLeCtRiFyInG MeMbRr_
 
Join Date: May 9th, 2002
Location: Chicago
Posts: 232
nDiScReEt is flying high
Post Re: Re: Re: Re: Re: Re: Re: java.util.zip.ZipException: No such file or directory

Excuse me for my delay in replying as I was away for a few days. I understand what you mean about your program script being able to work with the previous LimeWire version 2.3 as I have the same situation. I didn't have problems until I tried the 2.4 version. The link that I had given you earlier is what works 100% in a bash shell. I noticed from your prior post that when you printed your output, it has a non-bash default character "%" instead of "$". That gave me an early indication that my suggestive link will not work for you. Two, yes, you will have to set the environment variables for java to work by command line. That explained the lengthy error messages. I am greatful that I am speaking to someone with considerable *nix experience at it makes my assitance all the more easier to give.

Quote:
Originally posted by Unregistered
Greetings.
-------------------------------------
I'm the OP. Here are the answers to your troubleshooting questions... you can assume you're talking to someone with a reasonable amount of Unix experience.



czsh? That's a new one for me... I'm using tcsh.
-------------------------------------

I KEep discovering a new one every now and then but that was a typo. Thanks for catching that one. It should have been csh. These are all of the shells that I am aware of (at least on my system):rc,sh,ash,csh,ksh,zsh,bash,sash, . scsh,tcsh,teco,tclsh,and monito

-------------------------------------
Nothing special:

#!/bin/tcsh
cd /usr/local/LimeWire
sh runlime.sh >& /dev/null &

This script is called /usr/bin/limewire.
-------------------------------------

NOw that I know what shell, next I will need to know your .tcshrc file. Because you will have to set your java home and such in that file. I think this will work, I should test it out before posting it here but I'm a little tied up with a lot of work at the moment. Put this in to your .tcshrc file:

setenv JAVA_HOME /usr/local/java/j2sdk1.3.1
set path = ( . $JAVA_HOME/bin, $HOME )

or try this one:

alias JAVA_HOME '/usr/local/java/j2sdk1.3.1/'
setpath = ( . $JAVA_HOME/bin, $HOME )

--------------------------------------
The tarball -- I already mentioned this.
--------------------------------------

SOrry, I had to make sure whom I was talking to as it is difficult when there are so many "Unregistered User" accounts commenting and replying to these forum posts.

--------------------------------------
glibc-devel-2.2.4-6mdk
glibc-2.2.4-9.1mdk
--------------------------------------

THat is what I am using. I take you have mandrake as well (LM 8.2 as Cooker is using glibc-2.2.5).

--------------------------------------
I have /usr/bin/java, which is a symlink to the jre1.3.1 Java wrapper script.
--------------------------------------

THat is good and necessary.

--------------------------------------
I don't have this environment variable defined.
--------------------------------------

IT will need to be in order for the LimeWire 2.4 jar file or your custom script to work on your or any system. I finally downloaded the cvs of LimeWire and haven't yet looked through the source codes due to my absence for the past week. But I conjecture the reason for the change in how LimeWire 2.3 differs from LimeWire 2.4 is that a Developer had set the program to be as "generic" as possible to allow for easy portability to other platforms. This "generic" feature needs environment variables JAVA_HOME and path JAVA_HOME/bin to work correctly. I might do a diff between 2.3 and 2.4 to see exactly where the code effected the installationa and execution of the script.

--------------------------------------
Keep in mind that everything was working perfectly for me for LimeWire 2.3. In fact, I can still run 2.3 (which I have in a backup directory) without any problems. It's just 2.4 that won't run. Again, all file and directory names and permissions are unchanged from the previous installation.

Many thanks for any insights you may be able to offer.
--------------------------------------
Bad practice on my part but I incorporated them into the quote.

HTH

altoine

Last edited by nDiScReEt; May 24th, 2002 at 03:21 PM.
Reply With Quote
  #9 (permalink)  
Old May 25th, 2002
Unregistered
Guest
 
Posts: n/a
Default Re: Re: Re: Re: Re: Re: Re: Re: java.util.zip.ZipException: No such file or directory

Greetings, OP again.

I did exactly what you suggested: added an environment variable JAVA_HOME for my jre directory (I don't have the sdk) and made sure it was in my path. LimeWire still doesn't work.

I don't see why the change you suggested would have worked anyway, since I can still run LimeWire 2.4 manually with the java command; it just produces a million error messages about missing files and fonts (which were presumably supposed to be bundled in the tarball). If LimeWire really couldn't find Java or the standard libraries, it probably wouldn't have started up at all.

Have you or anyone else actually gotten the 2.4 tarball to work?
Reply With Quote
  #10 (permalink)  
Old May 25th, 2002
nDiScReEt's Avatar
_eLeCtRiFyInG MeMbRr_
 
Join Date: May 9th, 2002
Location: Chicago
Posts: 232
nDiScReEt is flying high
Default java.util.zip.ZipException: No such file or directory

Quote:
Originally posted by Unregistered
Greetings, OP again.

I did exactly what you suggested: added an environment variable JAVA_HOME for my jre directory (I don't have the sdk) and made sure it was in my path. LimeWire still doesn't work.

I don't see why the change you suggested would have worked anyway, since I can still run LimeWire 2.4 manually with the java command; it just produces a million error messages about missing files and fonts (which were presumably supposed to be bundled in the tarball). If LimeWire really couldn't find Java or the standard libraries, it probably wouldn't have started up at all.

Have you or anyone else actually gotten the 2.4 tarball to work?
I asked myself the same questions. That is why I downloaded the cvs to investigate it for myself. I will run a "diff" between cvs and version 2.3. Surprisingly, the suggestions that I gave, short of the experimental tcsh suggestions worked for me and others with their default user accounts using bash. Isn't there a way for you to try bash and then implement my suggestions from my link? I have just finished reconfiguring all of my distributions on my computers with the exception that I have gentoo and Linux From Scratch left to change. I had them all pretty much optimized as multimedia systems but because of my intensive involvement with developmental software, I had to make some drastic changes from repartitioning my drives to reconfiguring scripts. Under bash, all my distros rock. Red Hat 7.3, Mandrake 8.2, Mandrake Cooker, Linux From Scratch, and gentoo. I will have answers for you within a day (I hope) of why my suggestions work at all, let alone why they are necessary. One thing I do know for certain, they work 100% under bash as I have not been told different.

digging deep,
altoine
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
Can see file in Library but Can't see files in saved file directory crestler Download/Upload Problems 3 April 1st, 2007 02:14 AM
the directory or file cannot be created r&balex Download/Upload Problems 1 October 6th, 2005 09:56 AM
Save directory based on file extension Mr Prozac New Feature Requests 2 August 25th, 2002 06:31 PM
Installing LimeWire: libc.so.6 No such file or directory behroz General Linux Support 5 July 9th, 2002 10:48 PM
Exception in thread "main" java.util.zip.ZipException Unregistered General Linux Support 7 February 3rd, 2002 06:11 PM


All times are GMT -7. The time now is 09:52 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.