eJDK for Rio?

Hi all,

As a newcomer to the forums, I tried posting this earlier this week - Monday, I think. I haven’t seen it posted yet, so am retrying in hopes of this making it live on the forum and hopefully getting some help.

Was setting up a rio, and ran the java_installer.jar to get the ejdk and apply it to the rio. This seemed to hang while access the Oracle site - I clicked the ‘accept license’ and then nada - it hung on a ‘click here if you’re not redirected’ button. I assumed that the installer couldn’t find the correct ejdk, as Oracle might have removed it.

So I manually went to the Oracle java download site and rooted around until I found something that looked about right (ejdk-8-fcs-b132-linux-arm-vfp-sflt-03_mar_2014.tar.gz)

I then used the java_installer.jar to apply that ejdk to the rio successfully.

Now, however, when deploying code to it, experienced the following:

BUILD FAILED
/home/gearheadz/wpilib/java/current/ant/build.xml:349: Assertion failed boolean test.
Image of roboRIO does not match plugin.
Allowed image year: 2017 version: 8.
Actual image year: 2016 version 19.
RoboRIO needs to be re-imaged or plugins updated.

The plugin versions are 2017.3.1 - so I’m guessing that the ejdk version is too old. Which begs the question - where can I get ahold of the correct rev of the ejdk?

Or is this some other problem?

Many thanks!
Otto

That error message says that your roboRIO image is out-of-date by a year (last used in the 2016 season).

You will need to reimage the roboRIO (followed by redownloading the jdk and user robot code).
Make sure that you have the latest 2017 FRC Update from here: Offline Installation Preparation

Use these directions: Imaging your roboRIO

You should probably also check that your roboRIO firmware is up-to-date:Updating your roboRIO firmware
The latest roboRIO firmware version is: 3.0.0f0

roboRIO-firmware-version.png

Mark is correct about your error message being caused by no imaging the roboRIO. Since you’ll need to reinstall the edjk, here’s a few tips.

The java installer just worked for me. Do you have a firewall blocking it?

Here’s the link if you want to download the correct file: http://www.oracle.com/technetwork/java/embedded/embedded-se/downloads/javaseembedded8u6-2406243.html

Thank you all…

I was able to get this running, thanks to you all. Surprisingly I hadn’t seen that off-line install page previously. Don’t know why.

I backed off the eclipse plugins (needed to uninstall the 2017.3.1) version, and then install the downloaded copy (from the off-line install page).

I also grabbed the ejdk as shown and installed that.

I’m now able to deploy code. Yay!

Couple of observations for the unwary:

  1. when the java_installer.jar runs, it unpacks the ejdk into a JRE.tar.gz and JRE.tar.gz.md5. If these exist, the java_installer.jar will just use it - not anything new you downloaded. So, take a look in and if you see these files, I suggest you remove them to
    force the creating of the JRE* from the newly downloaded file.

  2. The installer removes the downloaded file. If you want to use it again - make sure you have a backup copy somewhere.

Hi Otto,
For more than four days as a team 6388 we are trying to install java to our roborio but we could not go any further than ‘‘click here if you’re not redirected’’ button.
As you mentioned i have downloaded different plugin versions using eclipse from offline installation page and tried all the ejdk.tar.gz in the archieve with java_installer.jar but the installer did not work. Even could not download JRE to the computer.
We have done everthing as it has said in directions. Installed latest JRE , JDK , eclipse, set java_home to windows.
i now think that java has stoped installation support and started to create our own JRE. But if you could manage to install using java_installer could you explain a little more please.
Thanks.

Hi Sininraft

I used the instructions as provided earlier in the thread by Mark McLeod.

This provided links to the eJDK, which I downloaded directly (via web browser, not the java installer) to the Downloads directory. There was also a link to the eclipse plugins.

In eclipse, under Help->InstallNewSoftware, on the middle right, there’s a link to ‘What’s Already Installed?’ - click that, find the Robot Java plugins and uninstall them.

Then follow the instructions in Offline Installation (Thank you Mark!) to install the plugins.

Back at the command prompt (I use linux), in the wpilib/tools directory, I did
% java -jar java_installer.jar

This should recognize that the ejdk is downloaded and prompt you to use it. From there, it asked for the team number & it just worked.

If you’re not able to get the download/install of the ejdk to work at this point, I suggest there’s some networking issue. Can you ping roboRIO-xxxx-FRC.local? (xxxx = team number). How about it’s direct IP address? 10.XX.YY.1 (XX.YY = team number; and I’m not 100% sure it’s .1 at the end). Finally, if you’re connected via USB networking try pinging 172.22.11.2.

If none of that works, my suggestion is to do some more thread searching for how to confirm you have networking operational; posting for help if you get stuck.

HTH…
Otto

Hi again everybody, i have solved the problem also :slight_smile: After uninstalling and reinstalling WPILib it has been solved. I did not understand what was wrong at the first installation but i installed version 2017.3.1 over an old version and it worked. Be sure you are connected to internet when you are installing the old version you have downloaded on your computer.