Applet in Javascript


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Applet in Javascript

  1. #1
    Huiyuan Guest

    Applet in Javascript


    Hi All,
    I have an applet to be embedded into an html file,but whenever I open it,the
    applet can't be instantiated.
    Here's the code:

  2. #2
    Tom Duffy Guest

    Re: Applet in Javascript


    The browser needs access to all of the files necessary - that might be the
    problem. Did you JAR the applet?

    Where's the code?

    Tom Duffy

    "Huiyuan" <huiyuanm@uwyo.edu> wrote:
    >
    >Hi All,
    >I have an applet to be embedded into an html file,but whenever I open it,the
    >applet can't be instantiated.
    >Here's the code:



  3. #3
    Huiyuan Guest

    Re: Applet in Javascript


    "Tom Duffy" <td4729@hotmail.com> wrote:
    >
    >The browser needs access to all of the files necessary - that might be the
    >problem. Did you JAR the applet?
    >
    >Where's the code?
    >
    >Tom Duffy
    >
    >"Huiyuan" <huiyuanm@uwyo.edu> wrote:
    >>
    >>Hi All,
    >>I have an applet to be embedded into an html file,but whenever I open it,the
    >>applet can't be instantiated.




    Now I know the reason.I used swing,but haven't installed some plug-in,so
    it isn't supported by the browser.
    >>Here's the code:

    >



  4. #4
    Nikolaj B.N Guest

    Re: Applet in Javascript


    >"Huiyuan" <huiyuanm@uwyo.edu> wrote:
    >>
    >>Hi All,
    >>I have an applet to be embedded into an html file,but whenever I open it,the
    >>applet can't be instantiated.


    When you are about to load the applet via the browser, make sure that the
    classpath of the system is not pointing to your applet, the browser only
    wants to load the applet via the same route as the html-page, but the ClassLoader
    first looks in the Classpath-variable then it downloads the applet-code

    Hope it helps!

  5. #5
    Huiyuanm Guest

    Re: Applet in Javascript


    "Nikolaj B.N" <nb@itplus.dk> wrote:
    >
    >>"Huiyuan" <huiyuanm@uwyo.edu> wrote:
    >>>
    >>>Hi All,
    >>>I have an applet to be embedded into an html file,but whenever I open

    it,the
    >>>applet can't be instantiated.

    >
    >When you are about to load the applet via the browser, make sure that the
    >classpath of the system is not pointing to your applet, the browser only
    >wants to load the applet via the same route as the html-page, but the ClassLoader
    >first looks in the Classpath-variable then it downloads the applet-code
    >
    >Hope it helps!



    I had made it.Thanks!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center