setting classpath for java classes(jar file) in XUL, to access via javascript

Go To


I am implementing firefox extension using XUL. I have set of java classes that is zipped as jar which needs to be accessed through javascript. If I copy my jar into jre's lib/ext then javascript will be able to invoke my java classes. If I remove from ext and package this jar in xpi, Javascript is unable to find the classpath for my jar file. Please let me know how to set the classpath for my java classes(jar file) in XUL environment at the earliest.

2009-06-16 09:23
by NoName
javascript/XUL invoking java ? interesting... any ref - Pierre 2009-06-16 09:53


I suggest taking a look at this extension

XQuery USE ME 1.4.7

and the following articles

Calling java from XUL applications

Java in Firefox Extensions

2009-06-16 10:02
by jitter
Thanks, Is there any easy way to set the classpath such that javascript can find it.- Anand - NoName 2009-06-16 12:21