You are not logged in.
Hello,
get-java6-jre doesn't work anymore because Oracle moved the file. The link to download current Java 8 is "http://javadl.sun.com/webapps/download/AutoDL?BundleId=101398". Despite the name, this is a tarball! No installer to run anymore, you have to "un-targz" instead, but the rest of get-java6-jre seems to work well (I'm currently running it, compressing the FS is loooong).
I'm not confident in patching get-* scripts myself, would someone more knowledgeable than me do it?
Note: the tarball is 62 MB; there's also an RPM which is "only" 40 MB at "http://javadl.sun.com/webapps/download/AutoDL?BundleId=101397", if it can be used that would save 1/3 of downloading time.
Thanks for the community.
Offline
I tried to "tazpkg convert" on the rpm file but after 5 minutes or so, I get into kernel panic.
Hmmm...
The download is no problem on my end as I get it with 3MB/s - but converting it into a SliTaz package seems to be quite a pain.
OK. On my side, I installed from the tarball without problems, and Java runs as expected.
Proposed basis for a patch (needs improvement):
[c]--- get-java6-jre.old 2015-01-27 14:00:49.816045136 +0100
+++ get-java6-jre.new 2015-01-27 14:13:54.862635672 +0100
@@ -5,16 +5,15 @@
#
# Author : Eric Joseph-Alexandre <erjo@slitaz.org>
-PACKAGE="java6-jre"
+PACKAGE="java8-jre"
WEB_SITE="http://www.java.com/"
SHORT_DESC="SUN Java Runtime."
DEPENDS="xorg-libXtst"
-TARBALL="jre.bin"
+TARBALL="AutoDL?BundleId=101398"
TEMP_DIR="/tmp/$PACKAGE.$$"
ROOT="$1"
-URL="$(wget -O - ${WEB_SITE}en/download/manual_v6.jsp | \
- sed '/self-extracting/!d;s/.*href="\([^"]*\).*/\1/;q')"
+URL="http://javadl.sun.com/webapps/download/AutoDL?BundleId=101398"
# Check if we are root starting anything
if test $(id -u) != 0 ; then
@@ -37,20 +36,16 @@
cd $TEMP_DIR
# Download the file
-test -f $TARBALL || wget $URL -O $TARBALL
-if [ ! -f $TARBALL ]; then
+test -f "$TARBALL" || wget "$URL" -O "$TARBALL"
+if [ ! -f "$TARBALL" ]; then
cd $CUR_DIR
rm -rf $TEMP_DIR
echo "Could not download $TARBALL. Exiting."
exit 1
fi
-# Do not trust 'df' free space
-sed -i 's/exit 3$//' $TARBALL
-
# Run the install file user may agree to SUN EULA
-chmod +x $TARBALL
-sh ${TARBALL}
+tar -xzf "$TARBALL"
# Make the package
@@ -60,7 +55,7 @@
mv jre${VERSION} $PACKAGE-$VERSION/fs/usr/lib/java
# extracted pkg can be removed: Save RAM
-rm -rf $TARBALL
+rm -rf "$TARBALL"
#delete unecessary files
rm -rf $PACKAGE-$VERSION/fs/usr/lib/java/jre${VERSION}/man[/c]
I couldn't come up with a correct regexp for the URL= bit. If someone can, here's the wget command to be used as input:
[c]wget -O - ${WEB_SITE}en/download/linux_manual.jsp[/c]
I don't know what to do with the "don't trust df" part.
Also, the file should be renamed to get-java8-jre (note the 8) or to the more generic get-java-jre.
Hope this helps.
Offline
[ Generated in 0.015 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]