How do I determine the namespace that needs to be imported from the Java library?
I'm writing some clojure code, and I rely on joda time to handle time The problem is that I don't know what to import, and the document is not very clear Now I know someone here may give me the right answer in less than 5 seconds, but I'd rather know how to solve this problem myself (except that I can't pass the document until I find the right answer)
If I do this in Python, I will import the top-level package and use the combination of dir and help to determine what I need to import Is there a way to do this in clojure? Or are there other kinds of java tools to solve this problem? I prefer things that face the command line
Solution
I usually choose David Grant's answer, but if you can't find any Javadoc (!), But you have a jar file. You can use the jar utility to list the files in the jar
Class files are mapped directly to the directory of their package names For example, jar - TF joda-time-1.6 Jar | list more datetime class as org / joda / time / DateTime. class; Datetime is located at org joda. Time package