I am developing an Eclipse RCP application that provides a GUI for
developing scripts and executing them with Rhino. I have to extend
JavaScript to provide access to our Java classes using importClass() and for
some reason I cannot import any class within my project.

I can import java and eclipse classes without any problem. I can even import
classes in separate jars that I grouped in a separate plug-in project that I
later added as a dependency to my plugin. But when I import any class inside
my project I get the error *Function importClass must be called with a
class; had "[JavaPackage
com.avionyx.atest.scripting.asl.GPIB.GPIBConnection]" instead.*

I used to be able to import the same classes in a regular Java project and
the problem started when I migrated from my regular java project (using
swing for the GUI) to a RCP Plug-in project (to use eclipse GUI classes).

Any help is welcome... thank you very much.

-- 
Milton
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to