• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.ClassNotFoundException: When including Applet in JSP

 
Chinni Bujji
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


My question is what should i give in the codebase
My classes are not in WEB-INF folder but i have created a folder in C drive in the following path C:/TEST/Applet

I tested with this path but it doenst work
Please help me
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the Applets forum.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The recommended practice is not to use codebase at all, but to keep all files used by the applet in the same directory as the HTML/JSP file that contains the applet tag.
 
Chinni Bujji
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But my .class files are in different locations i cant change them

Please give me any other solution

OR

give me some other suggestion where i dont have to use applets
my program is regularly read the log file and display it in the applet
so instead of applet can i use something else

please advice
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But my .class files are in different locations i cant change them

Why not? If you want to use an applet you'll need to work within their constraints.

my program is regularly read the log file and display it in the applet

If it simply displays a log file without user interaction, why can't you use a regular web page? Where is this log file located - on the server or on the client?
 
Chinni Bujji
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes the log file is located on the server
Whenever the user clicks start the log file should be read and displayed on to the JSP and when the user says stop, it should stop tailing

Please give me some suggestions how to go about it

Thanks
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like you could use a page that auto-reloads every N seconds. Or implement an AJAX solution that loads and displays new lines in fixed intervals through an XmlHttpRequest object.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic