LinuxDiscussion
 |<1-10Java Installaton


Sponsor
induscryptApr 14, 1:10pm
From
web.mit.edu/cygwin/cygwin_v1.3.2/usr/doc/zip-2.3/ [web.mit.edu/cygwin/cygwin_v1.3.2/usr/doc/zip-2.3/]
Q. When running unzip, I get a message about "End-of-central-directory
signature not found".

A. This usually means that your zip archive is damaged, or that you
have an uncompressed file with the same name in the same directory.
In the first case, it makes more sense to contact the person you
obtained the zip file from rather than the Info-ZIP software
developers, and to make sure that your copy is strictly identical to
the original. In the second case, use "unzip zipfile.zip" instead
of "unzip zipfile", to let unzip know which file is the zip archive
you want to extract.


**
That suggests you should clean all the temp files and the partially unzipped folders before the next try, I guess.

Usually speaking,as a crude method un-jaring instead of unzipping takes care of many archive related errors but that's not possible in this case I reckon.


Sponsor
konradcApr 14, 1:12pm
The .bin file that Sun provides you does more than just unzip so it's best to run the .bin file rather than just unzipping it. I noticed that unzip creates rt.pack rather than rt.jar there's probably other differences but I didn't do a full diff.

However that's a good point in post 11, clean out the temp directory or maybe there's a quota on the tmp directory? Tarball and transfer it over from another Linux machine.


DxterApr 15, 3:26am
# 10 & 12 Well it seems my previous post (# 9) has been misinterpreted a bit. i have not tried to unzip the jre-6u5-linux-i586.bin file. i ran it in terminal as ./jre-6u5-linux-i586.bin only. Only when the installation process halted at " Creating jre1.6.0_05/lib/rt.jar" line, did i try to extract the rt.jar file by the GUI archive manager.


# 11 In the lib directory, along with the rt.jar (it is a zip file as the icon has ZIP written over it, size 22.2 MB) file there is another one by the name rt.pack (which is not a ZIP file, size 10.7 MB) .

The md5 hash of the rt.jar file is
5a0afdbeac734357330f8bf2c4b0dbae rt.jar
and that of the rt.pack file is
f39148f97eb876717e3cbc792bac8f21 rt.pack

on typing "unzip rt.jar.zip" in the terminal, message displayed is
unzip: cannot find rt.jar.zip, rt.jar.zip.zip or rt.jar.zip.ZIP.

Also please let me know how can i clean all the temp files and the partially unzipped folders , and also how to find out the quota on the temp directory.


Sponsor
konradcApr 15, 8:21am
1. Don't unzip the rt.jar It's not meant to be extracted although it is an archive.
2. To clean the temp directory: rm -rf /tmp/*
3. To find your quota, try "quota"

Looks like the self-extracting program is having issues creating the rt.jar file from the rt.pack, should be:
266aaa8748ee599f42859274d65d0670 rt.jar

You could try a manual: "unpack rt.pack" ... which OS are you using? There could be a number of others that need to be manually done.


Sponsor
induscryptApr 15, 12:14pm
#14 looks like dot on about unpacking (rest too :-) ).

BTW, it seems that installer supports extraction-only through -X argument
java.sun.com/j2se/1.5.0/jre/install-linux.html [java.sun.com/j2se/1.5.0/jre/install-linux.html]
(page is for an older version, but should be just as good)
-------you can disregard this if -x works------
I wondered if jdk folks believed they could always find unpack, or what happened if the command failed, and this page showed up-
supportsmb.com/2007/02/25/suns-jdk-rpm-is-not-rpm-compliant-due-a [supportsmb.com/2007/02/25/suns-jdk-rpm-is-not-rpm-compliant-due-a]-
hack-to-compress-jar-files/

[Tiny tinyurl.com/6dgrek [tinyurl.com/6dgrek] ]
The installer uses dk1.5.0_10/bin/unpack200 for unpacking
So if the installer has run fine till there and you feel like having some fun, you can save that script snippet (after altering /usr path to something writeable in user directory) as a separates script and run it to take care of unpacking.


DxterApr 16, 4:56am
#14 On giving the quota command in the terminal, the following line gets displayed
"Disk quotas for user dxter (uid xxxx): none"
so it is pretty clear, i hope that space is not a problem out here in this case.

Also, unpack command is not supported and it says :command not found" the os is red hat.

#15 Well i have followed the same instructions while installing as given in the page recommended by induscrypt. Moreover i am keen on installing the jre one rather than the jdk.

So what should i do next. The problem still persists..........


Sponsor
konradcApr 17, 11:53am
Back in post 6 ...
Extract it on another Linux machine, "tar jcf" the directory created and transfer it over and extract it using "tar jxf" If you're really short on space, then forget the tarball and just transfer the entire directory in binary mode.


DxterApr 22, 4:14am
I did as was told in post 6. I extracted the file on another Linux machine successfully. Then i compressed it by " tar -jcvf " . Attached the compressed file in mail and sent it to my mailbox. Downloaded the file on the target machine.

But when i started extracting the file using " tar -jxvf " , although the extraction process started smoothly but it again halted at the following line:
jre1.6.0_05/lib/rt.jar

So what should i do next?


Sponsor
konradcApr 22, 6:56am
It definitely sounds like you don't have enough space. Ask your system administrator to increase your quota or FTP/SCP the files/directory over one at a time. It sounds like you have enough space to fit the tarball but not enough to extract it.


Sponsor
induscryptApr 22, 10:13am
For reference, rt.jar (which doesn't need further deflating) is about 41 mb and the whole basic jre (installed) folder is about 70 mb.


 |<1-10Java Installaton

You need to Sign-up for StumbleUpon to post to this forum