how to I add a third party package into the project build path [message #154451] |
Thu, 15 April 2004 13:31  |
Eclipse User |
|
|
|
Originally posted by: danwu2.hotmail.com
Hello all.
I was puzzled by this question in the past few days and hope to get some
help here.
I was trying to use some third party packages in the form of classes
files, not JAR files. I know if I donot use eclipse, I may just need
change the CLASSPATH environment variable on my xp machine to let javac
find the appropriate classes.
However, in Eclipse, We could not do the same thing. By looking at the
java Build Path windsow of my specific project, I can see it provide
buttons to include external JAR files in the build path. It also has a
button called "add class folder", however, it is for adding classes files
already in the workbench.
I have not idea how to add a third party package consisting of class files
and this really bothers me.
If you experienced the same problem, could you pls share with me your
soultion?
Thanks.
Dan
|
|
|
Re: how to I add a third party package into the project build path [message #154584 is a reply to message #154451] |
Fri, 16 April 2004 05:09   |
Eclipse User |
|
|
|
If you first create a new folder that's linked to the filesystem, you
can add the classfolder..
dan wrote:
> Hello all.
> I was puzzled by this question in the past few days and hope to get some
> help here.
>
> I was trying to use some third party packages in the form of classes
> files, not JAR files. I know if I donot use eclipse, I may just need
> change the CLASSPATH environment variable on my xp machine to let javac
> find the appropriate classes.
>
> However, in Eclipse, We could not do the same thing. By looking at the
> java Build Path windsow of my specific project, I can see it provide
> buttons to include external JAR files in the build path. It also has a
> button called "add class folder", however, it is for adding classes files
> already in the workbench.
> I have not idea how to add a third party package consisting of class files
> and this really bothers me.
>
> If you experienced the same problem, could you pls share with me your
> soultion?
>
> Thanks.
>
> Dan
>
|
|
|
Re: how to I add a third party package into the project build path [message #154666 is a reply to message #154584] |
Fri, 16 April 2004 12:34  |
Eclipse User |
|
|
|
And how can this be done programmatically?
I mean, to add a Jar i use the JavaCore.newLibraryEntry(...), but what
method do i have to use to add a Folder containing classes??
Joris Verschoor wrote:
> If you first create a new folder that's linked to the filesystem, you
> can add the classfolder..
> dan wrote:
> > Hello all.
> > I was puzzled by this question in the past few days and hope to get some
> > help here.
> >
> > I was trying to use some third party packages in the form of classes
> > files, not JAR files. I know if I donot use eclipse, I may just need
> > change the CLASSPATH environment variable on my xp machine to let javac
> > find the appropriate classes.
> >
> > However, in Eclipse, We could not do the same thing. By looking at the
> > java Build Path windsow of my specific project, I can see it provide
> > buttons to include external JAR files in the build path. It also has a
> > button called "add class folder", however, it is for adding classes files
> > already in the workbench.
> > I have not idea how to add a third party package consisting of class files
> > and this really bothers me.
> >
> > If you experienced the same problem, could you pls share with me your
> > soultion?
> >
> > Thanks.
> >
> > Dan
> >
|
|
|
Powered by
FUDForum. Page generated in 0.04176 seconds