It is indirectly referenced from required .class file

这种问题是由于你在导入别人的文件的时候确实jar包或者是jdk导致

比如我的情况是
java.lang.enum cannot be resolved,It is indirectly referenced from required .class file

就是因为少了jdk,具体做法,右键项目-》buildpath-》configur build path-》library-》add library->jre system library->选一个jre或者jdk即可

你可能感兴趣的:(It is indirectly referenced from required .class file)