Player APIs (BrightScript & Ja...
...
Object Reference
BrightScript Core Objects

roJRE

3min
this object allows you to load java applications using the java runtime environment (jre) on the player java runtime is no longer built into the firmware and rojre is not invokable unless you run a bsfw file extension to add jre to the player after you install jre, you must then invoke it to use rojre contact brightsign customer support to get the bsfw file extension the jre uses openjdk 8 and is available on xtx44/43, xdx34/33, hdx24/23, ls424/423, and 4kx42 models object creation the rojre object is instantiated with the java package filename and an optional associative array that specifies jvm system properties and program arguments you can use the type() global function to determine if the package was successfully loaded createobject("rojre", filename as string, options as roassociativearray) the associative array can contain two entries defines an associative array specifying system properties arguments an array specifying command line arguments all property/argument values must be passed as strings note that associative array keys are case insensitive (i e converted to all lowercase) by default; use the roassociativearray setmodecasesensitive() method to enable case sensitive keys example props = {} props setmodecasesensitive() props\["sys prop 1"] = "system prop 1" props\["sys prop 2"] = "system prop 2" props\["java io tmpdir"] = "/var/tmp" jre = createobject("rojre", "app jar", { defines props, arguments \[ "arg 1", "arg 2" ] }) if type(jre)="rojre" then 	print "successfully started java runtime" else 	print "unable to start java runtime" end if