posts/install-sun-java-6-jre-and-jdk-from-deb-packages/ #11
Replies: 73 comments 7 replies
-
Thanks! |
Beta Was this translation helpful? Give feedback.
-
I tried once again, no more dependency errors, but no ia32deb...? By running this script to download and/or install Java you acknowledge that - https://www.oracle.com/techn... If you want to see what this is script is doing while it is running then execute tail -f /home/spsoab-java6.sh.log Here we go... |
Beta Was this translation helpful? Give feedback.
-
Forgot to mention, this is a oneiric kubuntu64 box |
Beta Was this translation helpful? Give feedback.
-
The build won't be successful if unixobdc is not installed. I tried this on a vanilla (freshly installed) 32bit Ubuntu. |
Beta Was this translation helpful? Give feedback.
-
Would love to get this working, where do I submit errors for troubleshooting? I get the following errors on my x64 build: [x] Updating the changelog success |
Beta Was this translation helpful? Give feedback.
-
Thanks for all your feedback. I'll set up a bare bones test system and double check the build and install requirements. Hopefully I'll have an updated script later today. |
Beta Was this translation helpful? Give feedback.
-
Thanks to the issues reported above I've taken the script in a new direction. 0.1.3 is now available, please take the time to read the full README. - https://github.com/flexiond... The script no longer directly installs any Java packages, instead it now creates a locally hosted 'apt' repository for the Java 6 packages it created. You are now able to 'apt-get' install/upgrade Java 6 in the normal way, except the packages are sourced from your own file system. This approach solves the dependency issues reported and is much cleaner solution. I wish I'd done this form the outset :-) If anyone has any problem, then please submit a ticket on my Issue Tracker. |
Beta Was this translation helpful? Give feedback.
-
What exactly the difference between doing it the above way or from the PPA???? sudo add-apt-repository ppa:sun-java-community-team/sun-java6 I'm confused... Is there a difference between either of these methods? I would love to have some feedback either way about which is the best method to install Java. I prefer using the PPAs when I can to install software on Ubuntu, but if you have a good reason for what it is better to use the script, I would like to hear anyone's opinions either way. |
Beta Was this translation helpful? Give feedback.
-
If I install Java 6 using your script, will my Java installation automatically update when Oracle publishes security updates? |
Beta Was this translation helpful? Give feedback.
-
Quite a job. Thanks a lot. Just one question from a newbie: after seeing your script, and expecting Oracle to decide we should click somewhere to download their files, why don't you ask us to do it previously executing your script? And I understand that Janusz Debian Packaging scripts are thought to make a HOLE ppa of java packages. Is that why we need to download both (rather big) java*.bin? How difficult would it be to make a more focused script? I just wanted the JRE for 64b and plugin, not the JDK. By the way, there was no problem with the script. However, during the second download the speed was far worst than during the first one, and it was not my ISP, it was Oracle servers (or something from that side). Also, when I ran Thanks a lot. Now my system is how I need it. |
Beta Was this translation helpful? Give feedback.
-
Hi, @TechNerdCentral - All the Java 6 packages in the PPA's or Canonical repositories are version 6u26 or older. The version have security vulnerabilities that are being exploited in the wild. If you have install Java 6 from the Canonical repositories then the Java 6 browser plugin has been removed in a recent package update. @paul - 0.1.3 of my script will only create version 6u30 packages. However, I will soon be releasing an update which automatically tracks the upstream Debian packaging script which will provide a means of getting that latest Java 6 update. @giovanni - You should ask Janusz about the requirement for both Java6 installers, since my script rely on his entirely - https://github.com/rraptorr... Yes, the Oracle download servers can be horribly slow, which is why my script caches the downloads, so that you only need download them once each :-) Yes, the local 'apt' repository is unsigned. I'm not sure if I will be able to address that. I'll update the documentation though. Thanks to all of you for the feedback. Regards, Martin. |
Beta Was this translation helpful? Give feedback.
-
Hi, @giovanni - I've update the script to 0.1.4. This new version now signs the local 'apt' repository which means the packages are authenticated :-) Regards, Martin. |
Beta Was this translation helpful? Give feedback.
-
Hi, $ sudo apt-get install sun-java6-jre E: Package 'sun-java6-jre' has no installation candidate -- output from the script: [x] Symlinking jdk-6u30-linux-x64.bin success |
Beta Was this translation helpful? Give feedback.
-
Hi Martin, Great idea and script! But it didn't work without a small correction. Seems to me you left some comment hashes in the sections "[x] Building the packages" and "[x] Moving the packages". I removed them and the script works flawless :) |
Beta Was this translation helpful? Give feedback.
-
Have you thought about adding an additional script to support Oracle's Java 7? It would be awesome to have both as an option. :-) |
Beta Was this translation helpful? Give feedback.
-
thanks your script executed flawlessly. ubuntu natty 32bit however sudo apt-get install sun-java6-jre suggested a number of additional packages. It was on clipboard to paste. But I was logged out. On login a complaint about unsucessful install would I like to report. Sure. tried that a few times before I was informed it was not an official package (I know this). The control bits are available in system, preferences, sun java so all is well? How can I test this? and should I keep the icedtea firefox plug-in or is there something new? And can I keep both this and openJDK somehow disabling one without uninstalling? cheers stew |
Beta Was this translation helpful? Give feedback.
-
Trackback: Thanks for the awesome post and work. |
Beta Was this translation helpful? Give feedback.
-
Thanks a thousand fold! |
Beta Was this translation helpful? Give feedback.
-
Thanks for the great script! This solved my issues with installing JAVA on Ubuntu Server 10.04.4 LTS! |
Beta Was this translation helpful? Give feedback.
-
Succesfully installed in one box with mint 13 at first try but i can't get this in Mint12, appear as valid repo but even i cant force the version to setup. Sorry for my poor english |
Beta Was this translation helpful? Give feedback.
-
Git Hub link is not working |
Beta Was this translation helpful? Give feedback.
-
just stopped by to say thanks a lot for the script |
Beta Was this translation helpful? Give feedback.
-
Thanks for this. It was all going so well and then I got this error: [x] Downloading jdk-6u33-linux-i586.bin : https://: Invalid host name. Both web pages before that were returned successfully, but the ${DOWNLOAD_URL} and ${DOWNLOAD_SIZE} seem to be blank - an error not handled in the script. Whilst I can see your parsing the web page for links I'm not sure if it's working - maybe the page has been changed slightly. Any help would be appreciated. |
Beta Was this translation helpful? Give feedback.
-
looks like its missing ??? wget https://raw.github.com/flex... -O oab-java6.sh |
Beta Was this translation helpful? Give feedback.
-
Thanks, you should not out-of-the-box document how to run your script as root, but use a fakeroot approach to build those packages (if possible). |
Beta Was this translation helpful? Give feedback.
-
in ubunto 12, just type as javac and u ill get the available packages so then type as |
Beta Was this translation helpful? Give feedback.
-
Hi, [x] Installing Java build requirements success [x] Making build directories success [x] Removing clones of https://github.com/rraptorr... success [x] Cloning https://github.com/rraptorr... failed [i] Showing the last 5 lines from the logfile (/home/fsto/Downloads/oab-java.sh.log)... Thanks for any help! |
Beta Was this translation helpful? Give feedback.
-
Well, that was fast, the script is now finding the page ... Well, maybe a knot in the intertubes ... Or if it was a real problem and got fixed, thanks! |
Beta Was this translation helpful? Give feedback.
-
The URI for your script is incorrect. It looks like it should be https://github.com/flexiond... |
Beta Was this translation helpful? Give feedback.
-
Sorry, but I think the download links to Sun Java 6, don't work. --2012-09-26 22:00:44-- (Versuch:20) https://edelivery.oracle.co... 12697's retcode: 4 Thanks! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Install Sun Java 6 JRE and JDK from .deb packages
https://wimpress.com/posts/install-sun-java-6-jre-and-jdk-from-deb-packages/
Beta Was this translation helpful? Give feedback.
All reactions