Reputation: 8378
I'm having problem compiling a project in Eclipse.
The import com.sun.javadoc cannot be resolved
I added tools.jar as an external jar, changed default compiler to use jdk instead of jre, did Project -> Clean afterwards. But nothing of this helped. What am I missing here?
UPD: this is how it looks like (packages exist on the left, but not seen on the right): alt text http://3593.iz.piccy.info.nyud.net/i5/93/35/353593/lol.gif
Upvotes: 4
Views: 17193
Reputation: 1791
It is probably because there are 'restriction' rules on the jar you are importing.
These can be disabled by disabling them. Either globally or just on the necessary project.
Should be something like:-
Upvotes: 2
Reputation: 76709
There's a typo. If you're attempting to run javadoc programmatically, you need to use
com.sun.tools.javadoc.Main
and not
com.sun.javadoc.Main.
Upvotes: 1