What can I search for on GrepCode ?
GrepCode can be used to find:
  • Java projects
  • Java classes, interfaces, enums, annotations (Java Types)
  • Java methods
In addition, GrepCode allows users to do stacktrace searches and find usages of classes and methods. GrepCode indexes projects from the following repositories:
How do I search for Annotations by name ?
Prefixing the name with the @ character in the search text field, tells GrepCode that you are looking for an Annotation.
How do I restrict a search to a specific project/JAR using its MD5 checksum?
Search results can be restricted to a certain project by providing an MD5 checksum of the source or binary JAR of a project in the search box, as shown in the screenshot below.

How do I search for all the usages of a Type/Method ?
Once you have navigated to the Type/Method definition in the source code, click on the icon next to the definition. The popup menu provides a link to the usages of the Type/Method.

How do I search for all types that extend a base type ?
Once you have navigated to the Base Type's definition in the source code, click on the icon next to the definition. The popup menu provides a link to find the derived types.

How do I search for all methods that override a base method ?
Once you have navigated to the Base Method's definition in the source code, click on the icon next to the definition. The popup menu provides a link to find the overriding methods.

How do I perform a stack trace search ?
Clicking the checkbox labeled "Stack Trace Search" on the GrepCode home page provides a text area where you can paste your Java stack trace. Doing a search after that will take you to a page with the results of your stack trace search. Alternatively, if you are not on the main page, you can click on the link in the header labeled "Stack Trace Search", and perform the same search.
What can I filter my search results by ?

Results of a type search can be filtered by:

  • Repository that the project containing the type belongs to.
  • Nature of the type (Class, Interface, Enum, Annotation)
  • AppEngine compatibility
Projects can be filtered by:
  • Repository that the project belongs to.
  • The license under which the project is distributed.
  • AppEngine compatibility
Methods can be filtered by:
  • Repository that the project containing the method belongs to.
  • AppEngine compatibility

How can I use GrepCode inside Eclipse IDE ?
Yes. Please follow the instructions at http://grepcode.com/eclipse to install the plugin.
How can I use GrepCode inside IntelliJ IDE ?
Yes. Please follow the instructions at http://grepcode.com/intellij to install the plugin.
How do I report a problem or make a feature request?
Please visit our Contact page.
Why do you index only OpenJDK?
Due to licensing restrictions, we can only display source code from OpenJDK.
Why can I not find the source for project "xyz" ?
We try to make the best effort to index popular open source Java projects. However, if we have missed a certain library, please let us know where we can get the source and binary packages for the library and we will add it to the index.
Do you have a public API?
Yes. Please visit our API page.
New to GrepCode? Check out our FAQ X