Take the 2-minute tour ×

I've generated .class files from a web service. Now I want to use them in a project that I have. For that I included the .class in a package.

The problem is that Eclipse simply doesn't autocomplete when I try to call the methods wihtin the .class files...in fact for what I could understand it didn't even seem to recognize the package had something in it.

If I use the .java files everything works fine but I'd prefer to use the already compiled and smaller .class files.

How can I do it?

share|improve this question
Please clarify on the term package. –  Andreas_D Mar 7 '12 at 12:05
add comment

1 Answer

up vote 0 down vote accepted

JAR the classes up, then add a build path reference to it for the project in question. You will want to make sure that the classes you compiled actually belong in the package you placed them in, or even this JAR reference method will not work.

share|improve this answer
add comment

Your Answer


