How to reference an external class? [message #157480] |
Mon, 19 June 2006 15:36 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: Lore.Leuneog.gmx.net
Hello
I'm using eclipse 3.0 and I want to reference the class of a single
class-file (I don't have the .java file) which is placed in the same
folder as the java-files other of the project.
I tried to change the java build path in the project properties. But the
external class name is still unknown in my project.
How do I reference an external class file the right way?
Thank you
Sincerely
Lore
|
|
|
Re: How to reference an external class? [message #158018 is a reply to message #157480] |
Wed, 21 June 2006 20:06 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: eclipse4.rizzoweb.com
Lore wrote:
> Hello
>
> I'm using eclipse 3.0 and I want to reference the class of a single
> class-file (I don't have the .java file) which is placed in the same
> folder as the java-files other of the project.
> I tried to change the java build path in the project properties. But the
> external class name is still unknown in my project.
>
> How do I reference an external class file the right way?
If you only have a single .class file (instead of a JAR), then you can
put the .class file in its own directory in your project, and then in
the project Build Path configuration use the "Add Class Folder..."
button to select that directory.
Hope this helps,
Eric
|
|
|
Powered by
FUDForum. Page generated in 0.08270 seconds