Go to Post they just build excellence and silently wait to deploy their creation on the unsuspecting masses - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 21-01-2015, 06:28
java4first java4first is offline
(Java) Programming Mentor
AKA: Stu
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 2011
Location: Goffstown, NH
Posts: 62
java4first is an unknown quantity at this point
Problems Downloading Java (New Version?)

Hi -

A couple of weeks ago, I downloaded the Java JRE for the roboRIO with no problems. I just tried again last night with our second unit, and can't get it to work. I tried with two different laptops and two different Internet connections (at school and at home) and both last night and this morning. It comes up with a constant checksum error (see log from the installer below). The computed hash is always the same - so I don't think it's a problem with the downloaded file being randomly corrupted.

I didn't write down the version from before, but it is now Java 8 Update 33 (and I'm wondering if the installer hasn't caught up)?

This is what is available for download: ARMv5/ARMv6/ARMv7 Linux - SoftFP ABI, Little Endian3 in the file: ejdk-8u33-fcs-linux-arm-sflt.tar.gz. It also doesn't seem to quite give the same choices as the documentation (page 179 of the WPI docs).

I can go directly to Oracle and download it, but I'm guessing there is no checksum validation as part of the direct download.

Here is the link to the release notes on Oracle:

http://www.oracle.com/technetwork/ja...s-2406218.html

Is anyone else having this problem? Can I just go with using the external download? Or can you tell me what I am doing wrong? Like I said, I had no problems a couple of weeks ago after kick-off.

Thanks in advance!
Stu


21/Jan/2015 06:05:22,144- DownloadController: Signed in and have the .tar.gz link.
21/Jan/2015 06:05:22,313- DownloadProgressController: Initial url is https://edelivery.oracle.com/akam/ot...rm-sflt.tar.gz
21/Jan/2015 06:05:22,462- DownloadController: Loading unknown page
21/Jan/2015 06:05:22,551- DownloadProgressController: Final url is http://download.oracle.com/otn/java/...533367ce481d85
21/Jan/2015 06:05:22,553- DownloadProgressController: Starting JRE download. File size is 105920513 bytes
21/Jan/2015 06:05:58,287- DownloadProgressController: Downloaded JRE
21/Jan/2015 06:05:58,332- MainApp: Found JRE, checking hash
21/Jan/2015 06:05:59,618- MainApp: Computed hash is 28DDCAFE18C94BC019DA2FD99A111E1D, official hash is 082F08397B0D3F63844AB472B5111C8C

Last edited by java4first : 21-01-2015 at 06:31.
Reply With Quote
  #2   Spotlight this post!  
Unread 21-01-2015, 08:33
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 148
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
Re: Problems Downloading Java (New Version?)

This appears to be a bug, Oracle seems to have changed the download URL on us when they updated to 8u33. This was released yesterday, we are using the previous version 8u6. Further, the archive page to the old version seems to be 404'ing. I'll try to get this patched ASAP, but if you need to install Java within the next day, you can download it manually and run the JRECreate program with these options:
Code:
private static String[] JRE_CREATE_COMMAND = {"java",
            "-jar",
            "",
            "--dest", "JRE",
            "--profile", "compact2",
            "--vm", "client",
            "--keep-debug-info",
            "--debug"
};
Put the created JRE folder in /usr/local/FRC/jre. You can't just run the installer with your downloaded JRE file, it md5's that as well.

UPDATE:
Joe Ross pointed out another way to get the download working that allows you to download the original version and use the installer for the second half:
Quote:
Here's a procedure that should get the old version, at least until oracle stops hosting it:

In a browser, go to http://www.oracle.com/technetwork/ja...ads/index.html and download ejdk-
8u33-fcs-linux-arm-sflt.tar.gz. This makes sure all the right cookies and logins are set up.
Then go to the following link to download the old version: http://download.oracle.com/otn/java/...3/ejdk-8u6-fcs
-b23-linux-arm-vfp-sflt-12_jun_2014.tar.gz
Once you have 8u6 downloaded, you can just point the installer at it and go from there.

Last edited by fsilberberg : 21-01-2015 at 08:40.
Reply With Quote
  #3   Spotlight this post!  
Unread 21-01-2015, 10:47
java4first java4first is offline
(Java) Programming Mentor
AKA: Stu
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 2011
Location: Goffstown, NH
Posts: 62
java4first is an unknown quantity at this point
Re: Problems Downloading Java (New Version?)

Fred & Joe -

Thank you very much for your prompt response on this ... I was able to get the right file testing it here at work; hopefully the link will still be there tonight when I get to build.

Although it is perhaps obvious to everyone else - you might consider adding a note in the documentation about how the version of Java you use for FRC is constrained, and one shouldn't see a new release and go try to download and use it ... one of the downsides of opening up the platform (Linux & Java) ... although I am not complaining!

Thanks again!
Stu
Reply With Quote
  #4   Spotlight this post!  
Unread 21-01-2015, 12:03
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 148
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
Re: Problems Downloading Java (New Version?)

Yep, Kevin updated the documentation this morning. Thanks for letting us know!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi