Trying to use org.apache Packages [message #199618] |
Wed, 14 March 2007 22:15  |
Eclipse User |
|
|
|
Originally posted by: clay.gmx.at
Hi there,
I am more or less a Java and eclipse newbie, so please bear with me :)
What I am trying to do is to use the org.apache.commons.io.* classes. From
what I've known so far I need to add the appropriate package to my build
path. The problem is now that I do not have these packages! All I can find
is the folder "org.apache.commons.codec_1.3.0.v20070205-1728" in my
"c:\eclips\plugins" folder, which is obviously not the correct package.
How can I add this package? Do I have to manually download the packages
from the apache website? Do I have to manually unzip/tar them and then
rename them to somthing like "org.apache.commons.io"? Is there any better
way, for example by using the eclips built in "software updates -> find &
install" function?
I would appreciate any help, cause I am going nuts after searching for the
last two hours without any results :(
Thanks in advance
niko26
|
|
|
|
|
|
|
Re: Trying to use org.apache Packages [message #199655 is a reply to message #199618] |
Thu, 15 March 2007 10:04   |
Eclipse User |
|
|
|
Hi Niko,
You can "create a plugin from existing jar archives":
1) Create a project that contains the jar files from Apache (and
Hibernate, and JBoss, and anything else that you want to reference)
2) Create a plugin project using wizard "create a plugin from existing
jar archives".
Have the java project, or plugin project, that you are working with
reference the new plugin that you created. This will permit you to
import from Apache.
At run time, ensure that the jars that you used to the create the plugin
are on the classpath.
Charlie
Niko26 wrote:
> Hi there,
>
> I am more or less a Java and eclipse newbie, so please bear with me :)
>
> What I am trying to do is to use the org.apache.commons.io.* classes.
> From what I've known so far I need to add the appropriate package to my
> build path. The problem is now that I do not have these packages! All I
> can find is the folder "org.apache.commons.codec_1.3.0.v20070205-1728"
> in my "c:\eclips\plugins" folder, which is obviously not the correct
> package.
>
> How can I add this package? Do I have to manually download the packages
> from the apache website? Do I have to manually unzip/tar them and then
> rename them to somthing like "org.apache.commons.io"? Is there any
> better way, for example by using the eclips built in "software updates
> -> find & install" function?
>
> I would appreciate any help, cause I am going nuts after searching for
> the last two hours without any results :(
>
> Thanks in advance
>
> niko26
>
|
|
|
|
|
|
Re: Trying to use org.apache Packages [message #199782 is a reply to message #199691] |
Thu, 15 March 2007 17:18  |
Eclipse User |
|
|
|
Originally posted by: nugaee.SPAMtlen.pl
Niko26 wrote:
>
> This is how it makes sense to me, everything is in a good logical
> structure. Whereas if I download the "commons-io-1.3.1.zip", I will have
> the folder
>
> commons-io-1.3.1
>
> in my plugins path. Instead I would like to have (if possible
> automatically) a
it depends what you need these libs for. if you are developing java
project there is no need to put all your libs into eclipse/plugins
folder (and make them plugins).
> With "these libs" are you referring to standard eclipse libs or also to
> the apache libs?
apache, but in fact they use subversion system so if you want to connect
to the source repository from eclipse level you can use subversive or
subclipse plugins.
bartek michalik
|
|
|
Powered by
FUDForum. Page generated in 0.09038 seconds