Search code examples
javajavascriptrhino

How create java class object in javascript using RHINO


How create CUSTOM java class object in java-script using RHINO..?

We can use classes which is in rt.jar but not other custom class


Solution

    1. compile class use a package
    2. make a jar file
    3. set classpath of that jar
    4. use importPackage(Packages.)
    5. start rhino..
    6. now it will work.