Help setting up Javabeans activation framework standard extension
843830Jun 16 2001 — edited Jun 19 2001I'm fairly new to Java and to OOP. I'm developing an application in using JDK 1.2.1 and Borland/Inprise's JBuilder Professional version 3.0 (the OS is MS windows 98).
I'm trying to add javamail to the application
I downloaded javamail 1.2 from the Sun website . The site says you need the Java Activation framework as a prerequisite. So I downloaded that too (version 1.0.1)
the documentation file says :
<CUT>
There is effectively no installation of the JAF. The classes that
make up the JAF are contained in the included Java(tm) Archive (JAR) file,
"activation.jar". This file can be placed anywhere accessible to the
Java virtual machine running on your system. The only requirement is
that the activation.jar be included in your system's class path so
Java can find the JAF classes.
<PASTE>
I've tried the above , i.e. my autoexec.bat file has the line:
SET CLASSPATH=C:\JBUILDER3\BIN;.;C:\COREJAVABOOK
so I copied the files activation.jar and mail.jar to C:\JBUILDER3\BIN
but when I run the demo files supplied they dont work , I get errors in JBuilder :
for example , with the demo file MCTest.java
for ..
import com.sun.activation.registries.*;
I get error
"cannot access directory com\sun\activation\registries."
and for
import javax.activation.*;
get
"cannot access directory javax\activation."
If anyone is familiar with jbuilder & knows how to fix this & set up the application framework that would be great
( a bonus would be if you also can add any installation tips for javamail )
Thanks in advance for any help,
Mike.