Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Using External JAR files in JDev

421852Mar 2 2005 — edited Mar 3 2005
I'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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 31 2005
Added on Mar 2 2005
5 comments
707 views