954,506 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Unsure of where to put classpath for mail.jar

Hi there.
My name is Diana Thomas. I am a junior Java Developer who needs a bit of help.

I am trying to automatically send e-mails from my Java servlets.
I am using JDeveloper with Oracle 10g.

I have got the mail.jar and the activation.jar from the JavaMail and JavaBeans Activation Framework respectivley.
I have created a "classpath" enviroment variable in the advanced functions in "My Computer" and added these jar files to the classpath.

I don't think this is enough for the compiler to see these classes.
I am sure I need to add these paths somewhere in JDeveloper(Oracle).

Could anyone possibly help me with this?????????????

Many Thanks

Diana Thomas ;)

dianathomas
Newbie Poster
2 posts since Oct 2004
Reputation Points: 10
Solved Threads: 0
 

Hi,

You don't have to modify the classpath if you put those jar files in your JAVA_JRE_DIRECTORY/ lib/ext. What Servlet server are you running? There are also standard locations in servlet servers to put .jar files in.

Ed

Hi there. My name is Diana Thomas. I am a junior Java Developer who needs a bit of help.

I am trying to automatically send e-mails from my Java servlets. I am using JDeveloper with Oracle 10g.

I have got the mail.jar and the activation.jar from the JavaMail and JavaBeans Activation Framework respectivley. I have created a "classpath" enviroment variable in the advanced functions in "My Computer" and added these jar files to the classpath.

I don't think this is enough for the compiler to see these classes. I am sure I need to add these paths somewhere in JDeveloper(Oracle).

Could anyone possibly help me with this?????????????

Many Thanks

Diana Thomas ;)

cosi
Junior Poster
153 posts since Aug 2004
Reputation Points: 17
Solved Threads: 1
 

Hi cosi.
Thanks so much for your help and time. I really appriciate it.
What I've done is put the path in the "System Libraries" option in JDeveloper.
It seems to be working fine. Thanks for the info on the "Java_JRE_DIRECTORY/lib/ext" file. I will put my paths there in future!

Thanks again

Diana Thomas

dianathomas
Newbie Poster
2 posts since Oct 2004
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You