pb with EAI, getBrowser() doesn't work 
Author Message
 pb with EAI, getBrowser() doesn't work

Hi,

I wrote some VRML2.0 scene driven by an EAI java code. I don't remember
any of the versions I used for netscape/jdk/cosmoplayer. The thing I
know is that now I am using
communicator4.5/jdk1.1.6/cp2.1 and it no longer works.

The effective thing is that the method
vrml.external.Browser.getBrowser() rizes an exception as
follow:

    # Applet exception: error: java.lang.UnsatisfiedLinkError:
getBrowserType

    java.lang.UnsatisfiedLinkError: getBrowserType

      at vrml.external.Browser.getBrowser(Compiled Code)

    * at vrml.external.Browser.getBrowser(Compiled Code)

      at MyApplet.start(Compiled Code)

      at netscape.applet.DerivedAppletFrame.run(Compiled Code)

      at java.lang.Thread.run(Compiled Code)

    debut stop()

    fin stop()

or also

    debut start()

    # Applet exception: exception: java.lang.NullPointerException

    java.lang.NullPointerException

      at vrml.external.Browser.getBrowser(Compiled Code)

    * at vrml.external.Browser.getBrowser(Compiled Code)

      at MyApplet.start(Compiled Code)

      at netscape.applet.DerivedAppletFrame.run(Compiled Code)

      at java.lang.Thread.run(Compiled Code)

    debut stop()

    fin stop()

I took away all the code in the Applet source MyApplet.java, so it
became:

    import vrml.external.Browser;

    import java.applet.Applet;

    public class MyApplet extends Applet {

    Browser myBrowser;

    public void init() {

      System.out.println("debut init()");

      System.out.println("fin init()");

    }

    public void start() {

      System.out.println("debut start()");

      myBrowser = Browser.getBrowser();

      System.out.println("fin start()");

    }

    public void stop() {

      System.out.println("debut stop()");

      System.out.println("fin stop()");

    }

about the MyApplet.html file, nothing special to say:

    <EMBED SRC="MyApplet.wrl" WIDTH="50%" HEIGHT="100%">

    <APPLET CODE="MyApplet.class" WIDTH="50%" HEIGHT="100%">

    </APPLET>

If anyone could help me, I would thank a lot.

A+

--

        Laboratoire  i3S UNSA/CNRS      | Phone: (33)4-92-94-27-16
        Batiment Algorithmes            | Fax: (33)4-92-94-28-96
        Sophia-Antipolis 06410 BIOT     | W3: http://www.*-*-*.com/ ~abram
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



Tue, 15 May 2001 03:00:00 GMT  
 pb with EAI, getBrowser() doesn't work
Shouldn't you say mayscript as in

<APPLET CODE="MyApplet.class" WIDTH="50%" HEIGHT="100%" MAYSCRIPT>

Quote:

> Hi,

> I wrote some VRML2.0 scene driven by an EAI java code. I don't remember
> any of the versions I used for netscape/jdk/cosmoplayer. The thing I
> know is that now I am using
> communicator4.5/jdk1.1.6/cp2.1 and it no longer works.

> The effective thing is that the method
> vrml.external.Browser.getBrowser() rizes an exception as
> follow:

>     # Applet exception: error: java.lang.UnsatisfiedLinkError:
> getBrowserType

>     java.lang.UnsatisfiedLinkError: getBrowserType

>       at vrml.external.Browser.getBrowser(Compiled Code)

>     * at vrml.external.Browser.getBrowser(Compiled Code)

>       at MyApplet.start(Compiled Code)

>       at netscape.applet.DerivedAppletFrame.run(Compiled Code)

>       at java.lang.Thread.run(Compiled Code)

>     debut stop()

>     fin stop()

> or also

>     debut start()

>     # Applet exception: exception: java.lang.NullPointerException

>     java.lang.NullPointerException

>       at vrml.external.Browser.getBrowser(Compiled Code)

>     * at vrml.external.Browser.getBrowser(Compiled Code)

>       at MyApplet.start(Compiled Code)

>       at netscape.applet.DerivedAppletFrame.run(Compiled Code)

>       at java.lang.Thread.run(Compiled Code)

>     debut stop()

>     fin stop()

> I took away all the code in the Applet source MyApplet.java, so it
> became:

>     import vrml.external.Browser;

>     import java.applet.Applet;

>     public class MyApplet extends Applet {

>     Browser myBrowser;

>     public void init() {

>       System.out.println("debut init()");

>       System.out.println("fin init()");

>     }

>     public void start() {

>       System.out.println("debut start()");

>       myBrowser = Browser.getBrowser();

>       System.out.println("fin start()");

>     }

>     public void stop() {

>       System.out.println("debut stop()");

>       System.out.println("fin stop()");

>     }

> about the MyApplet.html file, nothing special to say:

>     <EMBED SRC="MyApplet.wrl" WIDTH="50%" HEIGHT="100%">

>     <APPLET CODE="MyApplet.class" WIDTH="50%" HEIGHT="100%">

>     </APPLET>

> If anyone could help me, I would thank a lot.

> A+

> --

>         Laboratoire  i3S UNSA/CNRS      | Phone: (33)4-92-94-27-16
>         Batiment Algorithmes            | Fax: (33)4-92-94-28-96
>         Sophia-Antipolis 06410 BIOT     | W3: http://www.essi.fr/~abram
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



Thu, 17 May 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. EAI works (or doesn't work) differently under different platforms

2. BLT installs but doesn't work, and TkTable doesn't build

3. tkman works/doesn't work [hpux9]

4. pb: Browser.getBrowser(this) and Class name?

5. EAI: getBrowser

6. EAI: getBrowser(Applet,frame,index)

7. eai: getBrowser / start-stop TimeSensor question

8. eai getBrowser trouble

9. getBrowser problem (EAI)

10. EAI,Cosmo Player: getBrowser return NullPointerException!

11. getBrowser() problem in EAI

12. ??? on EAI getBrowser()

 

 
Powered by phpBB® Forum Software