• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Applet not inited problems

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 750
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic