View Single Post
  #5   Spotlight this post!  
Unread 21-01-2015, 08:20
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 146
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
Re: fsilberberg

Quote:
Originally Posted by Qormix View Post
Thanks for the documentation I was able to create a jre haven't tested it on the RoboRio yet.

I have another question. Is this legal for competition? I don't want to ruin the spearit of FIRST

hears what I added

Code:
private static String[] JRE_CREATE_COMMAND = {"java",
            "-jar",
            "", // This is the JRECreate jar location
            "--dest", "JRE", // This is the folder that you need to put in /usr/local/frc
            "--profile", "compact2",
            "--vm", "client",
            "--keep-debug-info",
            "--debug"
            "--extension", "nashorn"
};
As far as I am aware, it should be legal. One thing you'll need to be careful of, though, is memory usage. One problem we had when we first started experimenting with java (this was before java 8 was out) was that the jvm used too much memory and crashed on startup. I'm not saying that it will for you, and we haven't seen this issue since we upgraded to java 8, just be aware of it.
Reply With Quote