Sandeep,
I'm afraid it doesn't work. I believe it's something to do with the path or classpath because when I try to right a
test class that imports the javax.mail package, this is the error I get:
package javax.mail.* does not exist.
Once again I'm running linux. Under the /etc/profile, I have my path listed as follows:
PATH="$PATH:/usr/x11R6/bin:/usr/java/jdk1.3.0_02/bin:"
This is the only environmental variable I edited in order to get the j2se working. It works but perhaps not correctly becuase I can't use gui's due to a font missing problem, but everything else works fine, and all the awt, and swing classes compile fine.
In the same file, I added the following variables:
JAVA_HOME="/usr/java/jdk1.3.0_02/bin:"
J2EE_HOME="/usr/local/Java/j2sdkee1.3/bin:", and then I added the J2EE_Home to the path variable and that didn't work. I haven't touched my classpath, as I didn't need to with the j2se. Can I just add it to the /etc/profile like the regular Path? Thanks for your help.
Okay, here's a curveball. If I compile the test class with the following, it compiles,
javac -classpath /usr/local/Java/j2sdkee1.3/lib/j2ee.jar test.java
but if I add a main method and write a simple program to send an email, it says the
following:
Exception in
thread "main" java.lang.NoClassDefFoundError: javax/mail/Message
I'm lost.
[This message has been edited by Sean Casey (edited May 12, 2001).]