-
Notifications
You must be signed in to change notification settings - Fork 120
Update code to match oracle website change #56
Conversation
Successfully tested on fresh ubuntu 12.04 installation with java 6. |
I think it's better to replace |
I can verify that this fixes the download issues. Tested on Ubuntu 12.04, 64-bit with Java 6. |
Also confirming that this worked for me |
Works for me too (6u35 on new install of Ubuntu 12.04.1 LTS). |
It fails on my machine If you want to see what this is script is doing while it is running then execute tail -f /home/ronen/oab-java.sh.log [x] Installing Java build requirements success |
failed for me as well on my ubuntu precise x64 on the lines of @narkisr |
This means it could not find the 6u35 release on the main page ... but it IS there. |
Same issue as @lvnilesh and @narkisr with Ubuntu 12.04.1 64bit. $ grep -P -o "/technetwork/java/javase/downloads/jdk6u35-downloads-\d+.html" /tmp/oab-index.html | uniq Here's the tail of oab-java.sh.log: Resolving www.oracle.com (www.oracle.com)... 23.46.145.55
100K .......... .......... .......... .......... .......... 512K 2012-09-12 08:38:40 (623 KB/s) - `/tmp/oab-download.html' saved [292877] 18015's retcode: 0 |
Right, but the problem is that for some reason it didn't find the file in the first download index. Notice that the script doesn't actually leave the correct /tmp/oab-download.html on the HDD after your run - it gets overwritten by the previous release file. |
At least, the above problem was solved by changing the line 443 as follows (i.e., adding 'u${JAVA_UPD}' after '${JAVA_VER}'): The problem now, however, is that I have errors in "Building the packages success" step. Below is the excerpt from the log: ..... [x] Symlinking jce_policy-6.zip 26062's retcode: 0 |
Or perhaps use ${JAVA_VER}[0-9u]* which might be a bit more robust to future changes, but not so eager as to match something inappropriate (as .* would most certainly do). e.g.:
|
Looks like this problem just resurfaced. [x] Installing Java build requirements success |
This should fix #55.