Multiple APIs

If I have mutliple APIs in different directories, but have a project that needs classes from both APIs, could I simply copy documents from one API into the other? Or is there another method?

[197 byte] By [Chocolatemana] at [2007-11-27 10:42:39]
# 1

How does this question relate to Java network programming exactly?

cotton.ma at 2007-7-28 19:19:39 > top of Java-index,Core,Core APIs...
# 2

well i am trying to use the apache api found at jakarta's site, but I believe I will still need some of the classes from Sun's common API as well

Chocolatemana at 2007-7-28 19:19:39 > top of Java-index,Core,Core APIs...
# 3

> well i am trying to use the apache api found at

> jakarta's site, but I believe I will still need some

> of the classes from Sun's common API as well

I see.

Well for your future reference this is an import and/or classpath question and not a networking question then.

What exact problem are you having? You don't know how to set the classpath?

cotton.ma at 2007-7-28 19:19:39 > top of Java-index,Core,Core APIs...
# 4

Well the program I am using is JCreator Pro, and say I started a new class and tried to do an import( import org.omg.etc). If I were trying to import a file from my default org package, it will run and find everything fine. But when I try to import a file from the package i found on Jakarta(commons.net) it will not even recognize it, even if I dump all the files in the same folder as my default org package.

import org.apache.commons.net.ftp.*; is the correct syntax.

So far I have tried dumping all the .java files of the newer package into the older one but that has not helped, and I have tried pointing JCreator 's directory at the new package but that has failed as well...

Chocolatemana at 2007-7-28 19:19:39 > top of Java-index,Core,Core APIs...
# 5

There would be a way in JCreator to add new libaries (jars) to a project. I don't know what that would be. You should find a JCreator forum and ask there. Or look at the help.

cotton.ma at 2007-7-28 19:19:39 > top of Java-index,Core,Core APIs...
# 6

thank you so very much, that helped out a LOT!

Chocolatemana at 2007-7-28 19:19:39 > top of Java-index,Core,Core APIs...