How to install jar library?

后端 未结 3 1827
死守一世寂寞
死守一世寂寞 2021-02-13 19:32

I\'ve downloaded the ANTLR Java runtime libraries. It\'s a jar file. It contains \"org.antlr.runtime\". Where do I put it so that the Java compiler can find it? Do I need to ext

3条回答
  •  野性不改
    2021-02-13 20:24

    For NetBeans you go to your Projects Tab and then right-click on the project you want the library added to then click Properties. Go to the Libraries bullet then on the right side click on Add JAR/Folder. No need to extract it. All you have to do is right click in the editor window and click Fix Imports.

    For use outside of NetBeans you have to add it to your Java classpath.

提交回复
热议问题