• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet not inited problems

 
Tempora Telora
Ranch Hand
Posts: 83
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 750
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 750
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic