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?
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?
How does this question relate to Java network programming exactly?
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
> 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?
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...
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.
thank you so very much, that helped out a LOT!