import in Eclipse

Hi,I am new in Eclipse.I would like to use activetree.print in my program. However, when I put this line to my programimport com.activetree.print.*the eclipse does not recognise and accept. Can any one give me a hint.Thank you in advance.Andrew
[293 byte] By [andrewnguyena] at [2007-11-27 5:47:42]
# 1
What is this "activetree.print"? Did you get it in a jar from somewhere? If so, it needs to be on the build path of your Eclipse project. It's all in Teh Docs
georgemca at 2007-7-12 15:32:29 > top of Java-index,Java Essentials,Java Programming...
# 2

Thank you for your reply.

In fact, I create a frame with table and text area. I would like to use smart Jprint, so that when i put some following lines as

import com.activetree.swing.AtBook;

import com.activetree.utils.AtPdfPrinter;

import com.activetree.utils.AtTablePrinter;

eclipse does not recognize and accept. How can I do then?

Sincere

andrewnguyena at 2007-7-12 15:32:29 > top of Java-index,Java Essentials,Java Programming...
# 3

> Thank you for your reply.

You're welcome, but did you read it? Because the following implies you didn't

> In fact, I create a frame with table and text area. I

> would like to use smart Jprint, so that when i put

> some following lines as

>

> import com.activetree.swing.AtBook;

> import com.activetree.utils.AtPdfPrinter;

> import com.activetree.utils.AtTablePrinter;

>

> eclipse does not recognize and accept. How can I do

> then?

>

> Sincere

georgemca at 2007-7-12 15:32:29 > top of Java-index,Java Essentials,Java Programming...
# 4

Put the jar(s) containing the active tree components in a directory somewhere, doesn't matter where just remember it.

In eclipse for the project open the properties window. You will see an entry for Java Build Path. Click on Java Build Path and you've got options for source, projects, libraries and order and export. Select the Libraries tab. Click on Add External Jars. Point to the path where your jar lives and add it. Click on ok and you should be done. It should then recognize the classes you're looking for.

PS.

puckstopper31a at 2007-7-12 15:32:29 > top of Java-index,Java Essentials,Java Programming...
# 5
Thank you, guys. I'll try then.
andrewnguyena at 2007-7-12 15:32:29 > top of Java-index,Java Essentials,Java Programming...