Solved

java mail

Posted on 2000-04-04
3
272 Views
Last Modified: 2013-11-24
sir,
i have developed mail server useing
java mial(javax.mail)for our portal
site.i am getting in stand alone.
but when i am sending mail useing
servlets i am getting error indicating
that class loader not found and
security exceptioons
what is the solution for that.
thanking sir
0
Comment
Question by:amar000
3 Comments
 
LVL 2

Expert Comment

by:azawawi
ID: 2683427
Most probably the Servlet engine is not finding your javax.mail, so you should find where is the classpath for that servlet engine and add the path of javax.mail package (or jar) to it...

Or better, you could unzip it into the default classes directory (if you're using JRun, for instance).

Make sure that the JVM that the servlet engine is using can also access the jar files of javax.mail.

what is the configuration of your servlet engine, JVM...etc

Hope this helps...
for more info, dont hesitate...
0
 

Accepted Solution

by:
prabhuram earned 100 total points
ID: 2686165
Hi,
Set the classpath to the javax. directory.
If in case you are using Unix platform, dont forget to export the classpath.
If you are using windows platform, you should include the directory in which you are exe the source file into the classpath.
This 'll solve your pbm.
more queries to, prabhuram@chequemail.com
0
 
LVL 1

Expert Comment

by:vishone
ID: 2720107

> sir,

  ????
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Eclipse Neon and jdk 1.8.0 11 138
Core Java. What output will be and why ? 6 66
Strange loading of website behaviour 3 32
Arrays.asList  VS  ArrayList 4 45
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now