|Eclipse cannot resolve class altough it is offered to me with AutoComplete [message #295605]
||Sun, 04 December 2005 12:22
Originally posted by: andreas.badelt.gmx.at|
I am using JaxB to create XML-files. The JaxB-Library automatically
generates a package called
with lots of *.java files in it. I compiled the package without any errors
- one of the compiled classes is
Now I import the package with
- that works.
In fact, Eclipse offers me the generated-Package and the
generated.ObjectFatory-class with its AutoComplete feature!
I now want to create an instance of ObjectFactory per
>ObjectFactory objFactory = new ObjectFactory();
but Eclipse says:
>ObjectFactory cannot be resolved or is not a type Marshall.java ...
I tried to clean the project per Menue -> Project -> Clean => that didn't
I also tried to import
that didn't work either (same "cannot be resolved" error ALTHOUGH Eclipse
offered me the class per AutoComplete?).
Now I wonder why Eclipse reports this error?
Both the "generated" package and other required *.jar-Files are in the
Build-Path of the Eclipse-Project.
I tried to compile and run the Marshall.java per command-line => THAT
So the code is definitely working...
In my view it must be a problem with my settings in Eclipse, but I don't
know which one exactly ;-(
Thanks for your help in advance,