search

Home  >  Q&A  >  body text

Eclipse下导入第三方jar无法调用!

急救!Eclipse下导入第三方jar,jar中的类无法调用,也无法查看源代码。之前看网上说是添加中文语言包搞的,我这个可以排除这个原因,因为用的是原生英文版,截图在此,奇怪的是虽然无法查看类的源代码,但是Eclipse右侧却能吧类中的方法变量都显示出来,请看图!

巴扎黑巴扎黑2799 days ago863

reply all(1)I'll reply

  • PHPz

    PHPz2017-04-21 10:58:43

    It has nothing to do with language. The jar you quoted is compiled into a class, and the source code cannot be viewed. A general open source program jar has two packages, one of which is generally named xxx_src.jar. This is the source code package, which contains java files. Your package is a class file.

    reply
    0
  • Cancelreply