Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Applet not initiated probelm

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have an applet that passes an object to my servlet and then read an object back from my servlet. I have a utility class that does the applet to servlet communication which my applet calls its static method. When I try to run my applet I get applet not initailised message. I have checked that the class path to the applet is ok.

I would like to know if there are any other reasons why the applet is not initialed apart from class path problem. Any suggestions would be most grateful.

Thanks in advance.
 
Bartender
Posts: 9615
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's many reasons for a not initiated message. An exception in the applet constructor or init() method, for example. Check your java console (if you're using the plug-in) for an exception trace.
Also, applets don't use the classpath. They are downloaded from the web server or, in the case of the appletviewer, loaded directly from the file system.
 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe you dont have a plugin. You must get it at java's site. Alternately, you may use HTMLConverter to convert your applets into object (it worked for me). Both these resources are available at java's site.
 
su ferrente
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Joe. I checked the console for the exceptions and realised that applet can't find one of the class it needs. Problem solved! Many thanks.
 
Oh, sure, you could do that. Or you could eat some pie. While reading this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic