How to run jar file made from Silver source?

I have asked this question already but as a part B in an earlier posting.

The following code compiles in Silver and outputs a jar file:

import java.io
import java.util
import javax.script

var scriptjs = "C:\\Users\\Bruce\\Documents\\Projects\\Work\\Experimental\\BOSS\\SilverScript\\bin\\Debug\\script.js"
var engine = ScriptEngineManager().getEngineByName("rhino");
engine.eval(FileReader(scriptjs));

var invocable = engine as! Invocable;

var result = invocable.invokeFunction("fun1", "Peter Parker");
print(result);
print(result.getClass());

This works fine in the IDE. However when I try to execute the jar file on the command line I get

C:\Users\Bruce\Documents\Projects\Work\Experimental\BOSS\SilverScript\bin\Debug>java -jar SilverScript.jar
Exception in thread "main" java.lang.NullPointerException
        at silverscript.__Global.main(C:\Users\Bruce\Documents\Projects\Work\Experimental\BOSS\SilverScript\Program.swift:7)

What extra parameters do I need to supply to java to make it work?

No that looks perfectly alright. The only thing I can think of is that the java in path is old, while elements uses the latest

You were correct, Carlo, the problem lay between the keyboard and the chair. I have installed jdk1.8.0_102 and jre1.8.0_102 and now commandline invocation is working.