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

[317 byte] By [kripa_ostwala] at [2007-11-27 8:23:29]
# 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.

passion_for_javaa at 2007-7-12 20:12:20 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Thanx,BUT SIR I haven't TOMCAT.Is it neccessary to download Tomcat for JAVA API
kripa_ostwala at 2007-7-12 20:12:20 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3
If you want to run simple java programs only Java will do. But if you want to work with webapplications you would require a web/app server. In that case you would require to install Tomcat.
passion_for_javaa at 2007-7-12 20:12:20 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4
I want do simple java mail programThen what is classpath ?Pls give answer
kripa_ostwala at 2007-7-12 20:12:20 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 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

passion_for_javaa at 2007-7-12 20:12:20 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 6
pls give me more information
kripa_ostwala at 2007-7-12 20:12:20 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 7
Thankx
kripa_ostwala at 2007-7-12 20:12:20 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...