I am currently writing a program that uses an optional library at runtime. Removing and adding this library during testing runs just fine (compiles, runs, no errors), because the associated classes are never called unless the library is present.
However, when said library is removed, of course Eclipse throws a bunch of "cannot be resolved" errors on those classes - even though they will never be loaded.
Is there any way to suppress these errors on these specific classes (as I know that they are - in effect - false positives), or is there a more elegant way to solve this?