Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So this might be a dumb question but, In Mac Terminal is there a command so that I can just say > find java and it will print the whole path to my java libraries? For greater context I've downloaded JUnit4 and I want to add the jar files to the java library but, well, I'm not sure where it is.

share|improve this question
up vote 2 down vote accepted

You can try this command :

# find / -path '*/bin/java'
share|improve this answer
That found it, but is there a way so that it only prints the path, cause I got a lot of output saying where it wasn't – EasilyBaffled Jun 16 '13 at 1:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.