• 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

applet on apache error, class not found

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have down two tests:
First: I put my applet class and HTML file under Microsoft IIS web server, I can view this applet from Windows XP/2K and Redhat 9(mozilla) clients.
Second: I put all these on my apache server on a Redhat box. I can only view this applet on the apacher server itself. But when I try from a Windows XP client, the error is:
Error loading class: test
java.lang.NoClassDefFoundError
java.lang.ClassNotFoundException: test\
.....

I am using Java 1.4.2-03 and Apache 2.2 coming with Redhat9. I set a java class path in /etc/profile.d/java.sh as
export PATH=$PATH:/usr/java/j2sdk1.4.2_03/bin/
For apache server, I only did the basic configuration, no much change.
Don't know where I should change, the class path? Apache configuration? Or others?
Thanks
 
may Lee
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
more information:
I put applet class and HTML files under /var/www/html/
 
may Lee
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it is finally because of java version problem. I use Java 1.2.2 in Linux and re-complie java applet, and WinXP can read it with Windows old java plugin
 
It is no measure of health to be well adjusted to a profoundly sick society. -Krishnamurti Tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic