rhino importPackage?

194 views
Skip to first unread message

jg

unread,
May 22, 2012, 5:07:12 PM5/22/12
to ve...@googlegroups.com

Hi,

it seems that top level functions like importPackage/importClass are not allowed in js files as they are undefined. They generate the exception
org.mozilla.javascript.EcmaError: ReferenceError: "importClass" are not defined...
. Are there good reasons for that (not standard or other ?)
Thanks for this very great project!!

Tim Fox

unread,
May 29, 2012, 6:29:35 AM5/29/12
to ve...@googlegroups.com
If you add the Java classes/jars on the classpath of your verticle, you should be able access them directly from inside your JS verticle without importClass/importPackage.
Reply all
Reply to author
Forward
0 new messages