akanksha
asked on
compiling javamail programs
--Unzipped to /usr/... i.e /usr/javamail.api-1.2
--downloaded java activAtion framework
-unzipped to /usr/java/jaf-1.0.1
--jdk is stored at /usr/java/jdk1.3.1_02
--used export classpath=<path of mail.jar file>:<path of activatio.jar file>:<path of javac>
-- have to compile a file msgsend.java
--this is stored in /usr/javamailapi-1.2/demo
--changed to directory /usr/javamailapi-1.2/demo
--command used to compile
javac msgsend.java
bash: message class not found
message exception not found
Now on using javac -classpath="" class file it is giving error
java.net.inetaddress not found
what is the problem
--downloaded java activAtion framework
-unzipped to /usr/java/jaf-1.0.1
--jdk is stored at /usr/java/jdk1.3.1_02
--used export classpath=<path of mail.jar file>:<path of activatio.jar file>:<path of javac>
-- have to compile a file msgsend.java
--this is stored in /usr/javamailapi-1.2/demo
--changed to directory /usr/javamailapi-1.2/demo
--command used to compile
javac msgsend.java
bash: message class not found
message exception not found
Now on using javac -classpath="" class file it is giving error
java.net.inetaddress not found
what is the problem
If you put all extensions to the standard libraries in the right place, that is, place the jar files in $JAVA_HOME/jre/lib/ext you shouldn't have a problem. And you shouldn't need to set the classpath.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi,
It seem you miss some fundamental jar try looking for jar like: rt.jar or runtime.jar and put it in the classpath.
Best regards
Nir
It seem you miss some fundamental jar try looking for jar like: rt.jar or runtime.jar and put it in the classpath.
Best regards
Nir