How to use org.apache.commons.lang namespace in Java?

前端 未结 2 1482
悲哀的现实
悲哀的现实 2020-12-16 14:29

I tried in Eclipse to use org.apache.commons.lang.NotImplementedException, though it seems from what I can see both from IntelliSense and the

相关标签:
2条回答
  • 2020-12-16 15:24

    You need to add Apache commons jar file to the project. You can select the jar you want from here - http://commons.apache.org/downloads/index.html
    for lang you need this - commons-lang-2.5.jar

    0 讨论(0)
  • 2020-12-16 15:25

    Download the commons lang library and add it to your eclipse project library.

    EDIT (2016/02) : it seems that nowadays the .jar files are not provided as is. You have to get the "binary" archive (e.g. "commons-lang3-3.4-bin.zip") from the same download page and extract it. The required jar files are inside the extracted folder.

    To add the jar to your eclipse project library:

    1. open project properties
    2. choose Java Build Path
    3. tab to Libraries
    4. add jars (if the jar is inside your project folder)
    5. add external jar (if the jar is outside your project folder)
    0 讨论(0)
提交回复
热议问题