Access function in class which is created with the mozilla (rhino) js.jar

151 views Asked by At

I created a file.js file having code "function func(x,y) {return x+y;}" and compiled with the command "java org.mozilla.javascrit.tools.jsc.Main file.js". Which resulted in file.class. How do I access / get values of function func in java code ?

0

There are 0 answers