View Single Post
  #2   Spotlight this post!  
Unread 20-01-2015, 15:44
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: nashorn Script Engine NullPointerException

Quote:
Originally Posted by michaelwm View Post
Is this a problem with the fact the roboRIO is running an embedded version of Java 8?
Correct. You can take a look at the API's included in our profile for the JRE here: http://www.oracle.com/technetwork/ja...w-2157132.html. We use the compact 2 profile when creating the JRE. If you need to use Nashorn, you can create your own JRE and install it in /usr/local/frc/JRE. Take a look here for stuff about creating custom JREs: http://docs.oracle.com/javase/8/embe...e.htm#A1161602. We use the following options when running JRECreate:
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"
};
Reply With Quote