• Post Reply Bookmark Topic Watch Topic
  • New Topic

NoClassDefFoundError javax.mail.Address  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need your kind assistance.
I am able to run an applet on my local pc (development PC), but once I publish this on the server (IIS) where I want it to be accessed I can't run the applet. I am getting the error NoClassDefFoundError for class javax.mail.Address.

Local CLASSPATH d:\java\jdk1.6.0\bin\mail.jar;d:\java\jdk1.6.0\bin\activation.jar;d:\java\jdk1.6.0\bin

Server CLASSPATH C:\inetpub\SUAP\mail.jar; C:\inetpub\SUAP\activation.jar; C:\inetpub\SUAP; inetpub\SUAP

What am I doing wrong?


 
Rancher
Posts: 999
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Applets do not run in the context of the server: they (get downloaded) and get run locally.
The dependencies must be available for the browser in order to be able to run the applet .
 
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using JavaMail from within an applet is probably not such a good idea. The client would have to have network access to the mail server (something your sys admin may not be willing to accommodate), and the username/password of the mail account would also have to be part of the applet, making it susceptible to being recovered by anyone having access to the applet.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!