Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.