Java: How do I know which jar file to use given a class name?

前端 未结 17 1278
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-02 09:47

Given a class, org.eclipse.ui.views.navigator.ResourceNavigator for example, how do I find out which jar file to use? I know it\'s in org.eclipse.ui.ide, but how would I fin

相关标签:
17条回答
  • 2020-12-02 10:18

    go for Ctrl+Shift+T in Eclipse IDE

    Open Type dialog appears where you enter the class name. after that package identifier and jar destination get displayed.

    0 讨论(0)
  • 2020-12-02 10:19

    For me this works fine:

    find * -type f -name '*.jar' -exec grep -l 'TestClass.class' '{}' \;
    

    Regards

    0 讨论(0)
  • 2020-12-02 10:19

    Use this: netbeans plugin

    Or jarFinder service

    0 讨论(0)
  • 2020-12-02 10:19

    You could also try Jarvana to find the jar files for a particular class.

    0 讨论(0)
  • 2020-12-02 10:21

    I vote for CTRL-SHIFT-T because it is already included in Eclipse. I actually dropped jarclassfinder.jar in the plugins dir within the eclipse installation but still couldn't find the plugin in Eclipse GUI

    0 讨论(0)
提交回复
热议问题