javascript - Mozilla Rhino - Error finding the class while using importClass(...) -
i trying following code:-
demo.js
importclass(packages.java.lang.system); importclass(packages.java.util.arraylist); importclass(packages.org.demo.check); function disp(){ system.out.println("========== welcome rhino demo ===========" ); var c = new check(); c.check(); }
now org.demo.check class class file present on classpath (i have verified using same class in separate java program , works fine)
when run shell gives me following error:
any idea issue?
Comments
Post a Comment