File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes Applet not inited problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet not inited problems" Watch "Applet not inited problems" New topic

Applet not inited problems

Tempora Telora
Ranch Hand

Joined: Jun 20, 2005
Posts: 83

I have my ticker1.class in the same folder as my html file. When I open my html file locally it stats in the bottom that the applet has not been inited. Here is the errors that it is saying:

It worked for about 10 mins then all of the sudden it just started giving me this trouble. Any ideas?
[ June 15, 2006: Message edited by: Randy Tatham ]
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Did you used to have a package statement in your Applet (tempjava)? Also, what's the javaExample class code doing there? Is that in the same file?
colin shuker
Ranch Hand

Joined: Apr 11, 2005
Posts: 750
Hi, I tried yur Applet in netbeans, minus the Java Main Class code above.
And it worked fine when I compiled and executed the Applet.

I have the Applet inside the classes directory of WEB-INF, when the HTML code is in the classes directory, It doesn't seem to work by executing the HTML page first. I have the same problem with my applets.

But.. when I put my 2 files (.html and .class) into a folder inside my webhosting site, it works fine... seehere.

Did you try using just the applet code, and also including BODY tag in the HTML, it should work.
colin shuker
Ranch Hand

Joined: Apr 11, 2005
Posts: 750
Hi, I just put the ticker1.class and ticker1.html files into the same directory on my website, and its fine.
Click here to see it working.
I agree. Here's the link:
subject: Applet not inited problems
It's not a secret anymore!