--
Josué Leal Moura Dantas
2011/3/22 Markus Doering <mydo...@googlemail.com>
> Hi there,
>
> make a try-catch throug your code example. And catch this Exception with
> like this:
>
> Class Test {
>
> public static void myMethod (String test) {
>
> try {
> ...my Code
> } catch (Exception e) {
> e.printStackTrace
>
> }
> Use always the Generic Exception.
> Enable Browser-Plugin console and you get a correct Exception. You must do
> try and error!
>
> Good Luck!
>
> 2011/3/22 Josué Leal Moura Dantas <josueleal...@gmail.com>
>> _______________________________________________
>> dev-tech-java mailing list
>> dev-te...@lists.mozilla.org
>> https://lists.mozilla.org/listinfo/dev-tech-java
>>
>
>
--
Josué Leal Moura Dantas
Mestrando em Ciência da Computação (UFPA)
(94) 8117-0893
2011/3/23 Markus Doering <mydo...@googlemail.com>
> I created one JAR from my java project which i included in JavaScript.
> I was using other APIs in this java project with external Jars (like
> log4j). But this didn't work. I had to include all sourcefiles directly in
> my java project. Otherwise i got an Exception from the error console of
> Firefox.
> I used this tutorial:
> https://developer.mozilla.org/en/java_in_firefox_extensions
>
>
> 2011/3/23 Josué Leal Moura Dantas <josueleal...@gmail.com>
>
>> Yes, my code is using other jars, but have I to include them in javascript
>> code?
>>
>>
>> 2011/3/23 Markus Doering <mydo...@googlemail.com>
>>
>>> Do you use other projets-jars in your BuildPath? This wont work! You have
>>> to include this Sourcefiles directly into your package!
>>>
>>>
>>> 2011/3/23 Josué Leal Moura Dantas <josueleal...@gmail.com>
2011/3/23 Markus Doering <mydo...@googlemail.com>
> Maybe this will help:
> loadXpcom : function() {
> //Path des LiveConnect Moduls HINT: don't forget to register
> Livconnect modul in manifest
> Components.utils['import']('resource://verConSign/LiveConnectUtils.js',
> this.LiveConnect);
> var jars = ['URLSetPolicy.jar', 'Test.jar'];
> var [loader,urls] = this.LiveConnect.initWithPrivs(java,
> 'verCo...@passau.de', jars);
> myClass = loader.loadClass('Test');
> var myObj = myClass.newInstance();
> if (myObj == null) {
> } else {
> var binval = myObj.hello('Hello World test!');
> alert(binval);
> }
> return myObj;
> },