aspose file tools*
The moose likes Applets and the fly likes java.lang.ClassNotFoundException: When including Applet in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "java.lang.ClassNotFoundException: When including Applet in JSP" Watch "java.lang.ClassNotFoundException: When including Applet in JSP" New topic
Author

java.lang.ClassNotFoundException: When including Applet in JSP

Chinni Bujji
Ranch Hand

Joined: Jan 31, 2007
Posts: 60


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

Joined: Jan 10, 2002
Posts: 61601
    
  67

Moved to the Applets forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42594
    
  65
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.


Ping & DNS - my free Android networking tools app
Chinni Bujji
Ranch Hand

Joined: Jan 31, 2007
Posts: 60
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
Marshal

Joined: Mar 22, 2005
Posts: 42594
    
  65
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

Joined: Jan 31, 2007
Posts: 60
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
Marshal

Joined: Mar 22, 2005
Posts: 42594
    
  65
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.ClassNotFoundException: When including Applet in JSP