Click to See Complete Forum and Search --> : Applet in Javascript


Huiyuan
03-16-2000, 01:42 PM
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:

Tom Duffy
03-16-2000, 05:22 PM
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:

Huiyuan
03-17-2000, 11:16 AM
"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:
>

Nikolaj B.N
03-22-2000, 09:07 AM
>"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!

Huiyuanm
03-22-2000, 03:21 PM
"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!