RoboRio Java Installation Problem

Hello,

Our programmer is currently trying to install java on the roboRio to test some code. However, he is turning up with this error:

java.io.FileNotFoundException:
C:\Windows.\ejdk-8u6-fcs-b23-linux-arm-vfp-sflt-12_jun_2014.tar.gz(Access is denied)

After this error, we went to Oracle’s website to directly download the proper JDK. However, it isn’t available anymore.

Any suggestions on what to do?

This is the site where you can download it.
http://www.oracle.com/technetwork/java/embedded/embedded-se/downloads/index.html

This should work.

Where are you running the installer from? That log says you’re running it from the windows directory, which definitely won’t work. Please run it from the ~/wpilib/tools directory.

Just for some visibility here, I had some problems deploying Java as well. Our school requires you to use a proxy to connect to the Internet, and while my browser and everything works fine, for some reason the installer was unable to download the JRE (just gave me a white box where the webpage is supposed to be). Used the link above to download and selected the “Already Downloaded” option and everything works fine.

I’m not sure if whatever HTTP Java library that’s used honors system proxy settings or not, but it seems not.

17/Jan/2015 14:55:43,749- InternetController: Starting internet check
17/Jan/2015 14:55:44,638- InternetController: Internet check successful, moving to download
17/Jan/2015 14:55:45,590- DownloadController: Loading download page page
17/Jan/2015 14:55:45,591- DownloadController: Loading download page page
17/Jan/2015 14:55:47,891- DownloadController: Loading download page page
17/Jan/2015 15:00:28,081- InternetController: Starting internet check
17/Jan/2015 15:00:29,417- InternetController: Error when attempting to connect to the internet
17/Jan/2015 15:06:02,789- ErrorController: Exiting from error screen

Hmm, that is odd that Java isn’t picking up the proxy. I was under the impression that the JavaFX webview would pick that up automatically, but I’ll need to look into it. In the meantime, here’s the link: http://www.oracle.com/technetwork/java/embedded/embedded-se/downloads/index.html. You need to download the Soft Float package. You should be able to use the instructions in the Java installer, just with your own web browser. After you download it, just use the already downloaded option on the second screen and point it at that downloaded file.

Thanks for your help! Will try.

(From the programmer on 4159)

Since Fred posted the link, Oracle updated the jdk and his link points to the new version, which doesn’t work with java-installer. Use this link instead: http://www.oracle.com/technetwork/java/embedded/embedded-se/downloads/javaseembedded8u6-2406243.html

We are facing a somewhat separate issue. We are able to download the jdk and the jre is extracted correctly. When java installer tries to connect to roborio and install the jre, it fails with:
java.io.IOException: Error when extracting the tar gz: exit code 2

We have confirmed that jre.tar.gz is present in the wpilib/tools/ directory?
Any pointers

Could you please post the log? It’s hard to help with only that to go on.

Just another hint … since the installer likes to delete the jar file after it gets it installed on the roboRIO - make sure (once you do manage to get the copy of it from the Oracle website) to keep an archive copy somewhere else, or you’ll keep having the same problem …

What? It doesn’t do that, it keeps a copy of the generated JRE in the folder it was run from (usually the tools folder), along with an md5 has of the created JRE for integrity checking.

I’m having the same “Access is Denied” issue. I’ve downloaded the correct file to put on the RoboRio and the Java Installer program will unpack the file but the it goes to this screen:


When I open click “open folder” to get to the log file, it opens my System32 directory. There is a “LogFiles” folder but it contains other folders that seem to have nothing to do with the Java Installer. Any suggestions on how to fix this or find my log file?





How are you running the installer? If it’s opening the system32 directory, that means it’s running from there, and not from the wpilib tools directory. It won’t work if run from there, as regular programs do not have write access there.

Originally I found the Installer in “C:\Users\TylerT” and it would not run from there, I’ve also tried running the installer from my desktop but I have the same problem.

You mean it wasn’t in the wpilib tools directory? Do you have the plugins installed? If so, could you try running it from the console in the wpilib tools directory? The command is java -jar java-installer.jar.

Sorry for the confusion, the installer was in the wpilib tools directory and the wpilib directory was in “C:\Users\TylerT”. I’ve tried moving the “wpilib” folder to several different places on my computer including a drive other than my C drive but I always get the same error and it sends me to my “System32” directory for the logs folder. Do I need to uninstall then reinstall the wpilib through Eclipse or do something else?

Sorry for the confusion, the installer was in the wpilib tools directory and I have the correct plugins installed through Eclipse. I tried moving the wpilib directory back to its original spot in C:\Users\TylerT and ran it through the command prompt and it worked and I was able to install the JRE on my RoboRio. I don’t know how running the installer through the command prompt fixed my problem but it did. Thank you for your help!!