![]() |
Latest Oracle Java JDK/JRE
Has anyone built a package for 13.37 with the latest version of Oracle Java (6 Update 31)? I read a thread where AlienBob built an OpenJAVA package, but unfortunately I cannot use OpenJAVA. I've found a couple of places (work related) that do not work at all using OpenJAVA, therefore the reason for askign for Oracle Java. Any help will be appreciated.
|
You'll need the contents from the jdk/jre source directory (i.e jre.SlackBuild, slack-desc, etc) from your favorite Slackware mirror and the jdk/jre .bin file from Oracle. Then run upgradepkg on the newly created package in /tmp.
|
The latest java download (7u4) is a ".tar.gz" instead of a ".bin".
How can the official SlackBuild be modified to handle this? |
Edit it accordingly and change,
yes yes | sh $CWD/jdk-${VERSION}-linux-${JAVA_ARCH}.bin || exit 1 to yes yes | sh $CWD/jdk-${VERSION}-linux-${JAVA_ARCH}.tar.gz || exit 1 |
Made these changes to the SlackBuild and it looks like its working.
Code:
-VERSION=6u27Had some trouble with "Minecraft" though, now need to start with: LD_LIBRARY_PATH="/usr/lib64/java/lib/amd64" java -jar minecraft.jar |
Quote:
@l0rddarkf0rce: I would do it like this. If Slackware, then: Code:
$ wget -r -np -nH -Rbin --cut-dirs=5 ftp://ftp.osuosl.org/pub/slackware/slackware-13.37/source/l/jre/Code:
$ wget -r -np -nH -Rbin --cut-dirs=5 ftp://ftp.osuosl.org/pub/slackware/slackware64-13.37/source/l/jre/Code:
$ cat << PATCHEND > jre.SlackBuild.patchIf Slackware, then: Code:
$ patch < jre.SlackBuild.patchCode:
$ sed -i 's/^\( ARCH=\)i586/\1x86_64/' jre.SlackBuild.patchCode:
$ chmod +x jre.SlackBuildCode:
# slackpkg blacklist jre |
@wadsworth: Ah, I see you worked this out already. ;)
Oh well, I have to update mine anyway and perhaps those steps will be useful to someone else who stumbles onto this thread. |
I see that Oracle Java updated to 1.7.0_05 and I've realised that manually patching jre.SlackBuild again and again for every update is boring. So I wrote a short shell script to do it. Nothing fancy but I figured I'd post it here nonetheless as others must also be encountering this issue. Save the code below into an appropriately named file (e.g. updatejreslackbuild.sh) in the same directory as jre.SlackBuild (or an empty directory, as it will fetch jre.SlackBuild and associated files). Then run it and it will update jre.SlackBuild for the latest available version (along with downloading the binary package from Oracle).
Code:
#!/bin/sh |
Quote:
I placed the file in a folder named "New Folder" and it would not run. Changed the folder name to "New_Folder" and it ran. The resulting slackbuild built the package okay but at the end I got this warning (not sure why - so I did not install): WARNING: zero length file usr/lib/java/lib/security/trusted.libraries |
I wouldn't worry, it is a zero byte file in the original 'source' package and the rpm that Oracle provide as well:
Code:
$ tar tvf jre-7u5-linux-i586.tar.gz jre1.7.0_05/lib/security/trusted.librariesCode:
$ tail -c 21230693 jre-7u5-linux-i586.rpm | zcat | cpio -tv ./usr/java/jre1.7.0_05/lib/security/trusted.libraries |
Quote:
I was just getting ready to edit my post and say never mind I noticed the zero byte file in the original. Cheers |
Quote:
|
Quote:
So I went back and edited the post to make it clear that the issue was with the slackbuild script but I forgot to edit both parts. Sorry. |
Quote:
Spaces in directory names is an abomination introduced by MS Windows and lazy-ass GUI programs. Real UNIX men avoid space. Eric |
Quote:
|
| All times are GMT -5. The time now is 06:52 AM. |