This week's book giveaway is in the Open Source forum.
We're giving away four copies of Programmers Guide to Apache Thrift and have Randy Abernethy on-line!
See this thread for details.
Win a copy of Programmers Guide to Apache Thrift this week in the Open Source 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
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

java.lang.ClassNotFoundException: When including Applet in JSP  RSS feed

 
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
 
Sheriff
Posts: 67257
170
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the Applets forum.
 
Rancher
Posts: 42974
76
  • 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: 42974
76
  • 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: 42974
76
  • 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.
 
I miss the old days when I would think up a sinister scheme for world domination and you would show a little emotional support. So just look at this tiny ad:
ScroogeXHTML - small and flexible RTF to HTML converter library
https://coderanch.com/t/710903/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!