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:
Printable View
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:
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:
"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:
>
>"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!
"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!