• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

applet on apache error, class not found

 
may Lee
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic