LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   JDK package in Slackware 13.0 /extras directory not working. (https://www.linuxquestions.org/questions/slackware-14/jdk-package-in-slackware-13-0-extras-directory-not-working-752930/)

c0mpm5tr 09-05-2009 01:12 PM

JDK package in Slackware 13.0 /extras directory not working.
 
When I try to install the Java Developer Kit package: jdk-6u16-i586.txz from either the DVD or freshly downloaded from ftp.slackware.com, I get the error:
Code:

Verifying package jdk-6u16-i586-1.txz.
xz: (stdin): Unexpected end of input
Unable to install jdk-6u16-i586-1.txz:  tar archive is corrupt (tar returned error code 2)

The package seems to have installed from the original setup, however, the package showed up in /var/log/packages with the uncompressed package size showing up as 0K, and no files installed. I get the tar archive is corrupt error when I try to install the package after having removed the original failed install.

Is anyone else having this same issue?

Thanks

Thursapr 09-05-2009 01:26 PM

Works fine with me. Installed from DVD.

c0mpm5tr 09-05-2009 05:33 PM

After downloading from second mirror, I got a valid package.

btncix 09-11-2009 08:59 PM

I came across a bad mirror as well. I'm running Slackware64 13.0.
The bad mirror I was using was ftp://ftp-linux.cc.gatech.edu/pub/sl...lackware-13.0/
The package was getting installed in /usr/lib instead of /usr/lib64. In the end I just used the package on the install DVD.

note: the mirror was not a problem when installing jdk for 32 bit system


details below, wrote a didactic response for newbies like me


Here is what I initially did as superuser:
# slackpkg update
# slackpkg install jdk-6u16-i586-1
# reboot


once system reboot
# java -version -> this would not execute
# slackpkg search jdk -> said jdk was still not installed
So I checked /usr/lib and /usr/lib64. What I found was that jre (which came from when I initially installed Slackware64) was on /usr/lib64 and the jdk was on /usr/lib


solution:
1. mounted the install dvd to /mnt/dvd
2. go to the extras directory on the dvd
3. installpkg <the-jdk-filename>.txz
4. reboot
5. #java -version -> worked this time


All times are GMT -5. The time now is 06:18 PM.