• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet not initiated when I run it on Tomcat

 
Sai Sudhakar Paluri
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When i run my applet through browser under tomcat it gives this error.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

That doesn't tell us anything to go by. What messages do you see in the Java Console?
 
Sai Sudhakar Paluri
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ulf Dittmer:
Welcome to JavaRanch.

That doesn't tell us anything to go by. What messages do you see in the Java Console?



Applet Not initiated
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's a message displayed at the bottom of the browser window, but I'm talking about the Java Console, which is a little window opening when you run an applet. If you have closed it, you can use the Java Plugin control to reopen it (or just close and restart your browser).

You could also tell us what the HTML applet tag looks like, where your HTML and class files are located, whether it works when run locally from your hard drive, ...
 
Sai Sudhakar Paluri
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When i run from hard disc it is working . when i run from JBuilder it is working fine . but when i run from browser that too from tomcat server it is not working it is giving the error Applet Not Initiated .

I have my applet class file and HTML file in my web app and 4 files which are class files which are extended to Jpanel are in /WEB-INF/classes directory of my web context.

I am getting the error on the status bar of browser and i am not getting any error in console .
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't keep your applet class files inside the WEB-INF directory. Tomcat (and all other servers) will not serve any files out of that directory. You need to keep them in a publicly accessible directory - the easiest would be the same directory the HTML page is in.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic