Using External JAR files in JDev
421852Mar 2 2005 — edited Mar 3 2005I'm trying to write some code that will use the Jacob project to communicate with MS Word, but I can't get the references to resolve at compile time. I've added the path to where the jacob.jar file lives to my classpath, and imported it in my .java file, but JDev says the class is not found. I KNOW this is an easy problem to fix, but as a java newbie, I'm stuck. How do you get JDev to see 3rd party jar files? My code looks like:
import com.jacob.com.*;
import com.jacob.ActiveX.*; //no errors here...apparently JDev sees the libraries?
public class Word
{
ActiveXComponent xl = new ActiveXComponent("Word.Application"); //ActiveXCompont is in the jacob jar file, but it can't resolve the object
...
//nothing else will build since it's all dependent upon the ActiveXComponent class
Any java guru's out there know how to make JDev see this?