Hi, I am trying to run my SendMail.java program which is correct logicaly but its giving one error again and again.
Error is: DEBUG: java.io.FileNotFoundException: C:\Program Files\Java\jre1.5.0_04\lib\javamail.providers (The system cannot find the file specified)

I have created javamail.providers file in jdk_home/lib and in eclipse too.

Alex Edwards commented: Take some time to think about why I marked you -rep... -1

Copy that into explorer and check that you can see the file
C:\Program Files\Java\jre1.5.0_04\lib\

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.