VisualAge doesn't see '' package

I am developing a java program using VisualAge for Java v3.5 Professional.  My code includes the "" package that comes with VisualAge.  I am coding a program that will build an XML document by using the "TXDocument" class that is part of IBM's xml parser package.  However, when I try to run the code, I get a "ClassDefNotFound" error.  Currently, I have three classes.  The error is occuring in my abstract class as shown below:

package com.test.xml.filter;

import org.w3c.dom.*;
import java.util.*;

public abstract class Filter  
public Document createXMLDocument (String rootName)  
   /* the error is occuring on the line below. The
      compiler doesn't recognize TXDocument */
   Document oDoc = new TXDocument();
   Element oRoot = oDoc.createElement(rootName);

   DTD oDtd = ((TXDocument)oDoc).createDTD(rootName, new
        ExternalID(rootName + ".DTD"));
   return oDoc;    
This issue is puzzling me because I can clearly see the class definition if you click on the "Packages" tab in VisualAge and drill down to TXDocument.  Is there something in VisualAge that needs to be configured?  Do I need to reimport the package?  If so, where do I get it?  I have already tried searching around for a JAR file or something, but the only thing I have found is the xml4J JAR file that seems to contain everything except for the package.  Does anybody know what is wrong with VisualAge or my code?  Thank you.
Who is Participating?
Yury_DelendikConnect With a Mentor Commented:
Setup the classpath of your main class (that contains main methoed): select class, Selected->Run->Check Class Path and choose required projects. (IBM's xml parser is your case)
ozonshakAuthor Commented:
Thanks Yury.  That did the trick.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.