help for set classpath
Dear Sir \ Madam
I have download javamail-1.4.zip and jaf-1.1.zip from sun at c:\j2sdk1.4.1 directory
Then I extract these files in same directory with folders javamail-1.4 and jaf-1.1. These folders have mail.jar and activation.jar file
I am confused to set correct path
Please help me
# 1
You could have looked into installation instructions bro!
anyways classpath looks like this
C:\j2sdk1.4.1_03\jre\lib\rt.jar;.;%classpath%;C:\Tomcat 4.1\common\lib\servlet.jar;
Give your jar file location after lib. Set the PATH variable too, which would look similar to this:
C:\j2sdk1.4.1_03\bin;C:\Tomcat 4.1\common\lib\servlet.jar;.;
You can go to
http://java.sun.com/j2se/1.3/install-windows.html
or
http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html
for detailed notes.
Hope it helps.
Rk.
# 5
> I want do simple java mail program
> Then what is classpath ?
> Pls give answer
Your classpath should show the .jar files location in your system.
If you have your mail.jar file in c:\foldername1\foldername2\mail.jar
then your classpath should reflect that. for e.g CLASSPATH="C:\foldername1\foldername2\mail.jar"
Set your classpath according to the .jar file you placed in your system.
Please go through the links and read each and every instruction line by line.
Thanks.
Rk