Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Antlr can't be found when building Processing


    This is my error when building "processing"

    BUILD FAILED
    /opt/processing/build/build.xml:309: The following error occurred while executing this line:
    /opt/processing/build/build.xml:365: The following error occurred while executing this line:
    /opt/processing/java/build.xml:37: Problem: failed to create task or type antlr
    Cause: the class org.apache.tools.ant.taskdefs.optional.ANTLR was not found.
    This looks like one of Ant's optional components.
    Action: Check that the appropriate optional JAR exists in
    -/opt/apache-ant-1.9.5/lib
    -/root/.ant/lib
    -a directory added on the command line with the -lib argument

    Do not panic, this is a common problem.
    The commonest cause is a missing JAR.

    This is not a bug; it is a configuration problem

    ant-antlr.jar and antlr-4.5.1-complete.jar are both in /opt/apache-ant-1.9.5/lib i swear. i did not see any ant documentation on how to pass the -lib on the commands line and im using linux mint 17.2

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    14,038
    From the ant man page: -lib <path> specifies a path to search for jars and classes

    You need to verify that antir is installed, and where the jar file for it is located.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Quote Originally Posted by Rubberman View Post
    From the ant man page: -lib <path> specifies a path to search for jars and classes

    You need to verify that antir is installed, and where the jar file for it is located.
    I did "ant -lib /opt/apache-ant-1.9.5/lib/ run" and "ant run -lib /opt/apache-ant-1.9.5/lib/" and got the same error. besides it's already looking there.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    14,038
    That probably isn't where it is located. I have base antlr installed on my system. This is what the find command comes up with (I am running a Red Hat Enterprise clone):

    /usr/local/netbeans-7.4/ide/modules/ext/antlr-runtime-3.4.jar
    /usr/local/netbeans-7.4/ide/modules/locale/org-netbeans-libs-antlr3-runtime_zh_CN.jar
    /usr/local/netbeans-7.4/ide/modules/locale/org-netbeans-libs-antlr3-runtime_ru.jar
    /usr/local/netbeans-7.4/ide/modules/locale/org-netbeans-libs-antlr3-runtime_ja.jar
    /usr/local/netbeans-7.4/ide/modules/locale/org-netbeans-libs-antlr3-runtime_pt_BR.jar
    /usr/local/netbeans-7.4/ide/modules/org-netbeans-libs-antlr3-runtime.jar
    /usr/local/netbeans-7.4/extide/ant/lib/ant-antlr.jar
    /usr/local/netbeans-7.4/java/modules/ext/hibernate/antlr-2.7.6.jar
    /usr/local/netbeans-7.4/cnd/modules/org-netbeans-modules-cnd-antlr.jar
    /usr/local/netbeans-7.4/cnd/modules/locale/org-netbeans-modules-cnd-antlr_zh_CN.jar
    /usr/local/netbeans-7.4/cnd/modules/locale/org-netbeans-modules-cnd-antlr_ja.jar
    /usr/local/netbeans-7.4/cnd/modules/locale/org-netbeans-modules-cnd-antlr_pt_BR.jar
    /usr/local/netbeans-7.4/cnd/modules/locale/org-netbeans-modules-cnd-antlr_ru.jar
    /usr/local/netbeans-7.4/enterprise/modules/ext/struts/antlr-2.7.2.jar
    /usr/local/glassfish-4.0/glassfish/modules/org.eclipse.persistence.antlr.jar
    /usr/local/glassfish-4.0/glassfish/modules/antlr-repackaged.jar
    /usr/share/ant/lib/ant-antlr.jar
    /usr/share/java/ant/ant-antlr-1.7.1.jar
    /usr/share/java/ant/ant-antlr.jar
    /usr/share/java/antlr-2.7.7.jar
    /usr/share/java/antlr.jar
    /usr/lib64/eclipse/plugins/org.apache.ant_1.7.1.v20100518-1145/lib/ant-antlr.jar
    /usr/lib64/gcj/ant/ant-antlr-1.7.1.jar.so
    /usr/lib64/gcj/ant/ant-antlr-1.7.1.jar.db
    /home/bboyle/Development/eclipse/plugins/org.apache.ant_1.7.1.v20090120-1145/lib/ant-antlr.jar

    So, try this: find / -iname '*antlr*.jar'
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  6. #5
    -->
    Quote Originally Posted by Rubberman View Post
    That probably isn't where it is located. I have base antlr installed on my system. This is what the find command comes up with (I am running a Red Hat Enterprise clone):

    /usr/local/netbeans-7.4/ide/modules/ext/antlr-runtime-3.4.jar
    /usr/local/netbeans-7.4/ide/modules/locale/org-netbeans-libs-antlr3-runtime_zh_CN.jar
    /usr/local/netbeans-7.4/ide/modules/locale/org-netbeans-libs-antlr3-runtime_ru.jar
    /usr/local/netbeans-7.4/ide/modules/locale/org-netbeans-libs-antlr3-runtime_ja.jar
    /usr/local/netbeans-7.4/ide/modules/locale/org-netbeans-libs-antlr3-runtime_pt_BR.jar
    /usr/local/netbeans-7.4/ide/modules/org-netbeans-libs-antlr3-runtime.jar
    /usr/local/netbeans-7.4/extide/ant/lib/ant-antlr.jar
    /usr/local/netbeans-7.4/java/modules/ext/hibernate/antlr-2.7.6.jar
    /usr/local/netbeans-7.4/cnd/modules/org-netbeans-modules-cnd-antlr.jar
    /usr/local/netbeans-7.4/cnd/modules/locale/org-netbeans-modules-cnd-antlr_zh_CN.jar
    /usr/local/netbeans-7.4/cnd/modules/locale/org-netbeans-modules-cnd-antlr_ja.jar
    /usr/local/netbeans-7.4/cnd/modules/locale/org-netbeans-modules-cnd-antlr_pt_BR.jar
    /usr/local/netbeans-7.4/cnd/modules/locale/org-netbeans-modules-cnd-antlr_ru.jar
    /usr/local/netbeans-7.4/enterprise/modules/ext/struts/antlr-2.7.2.jar
    /usr/local/glassfish-4.0/glassfish/modules/org.eclipse.persistence.antlr.jar
    /usr/local/glassfish-4.0/glassfish/modules/antlr-repackaged.jar
    /usr/share/ant/lib/ant-antlr.jar
    /usr/share/java/ant/ant-antlr-1.7.1.jar
    /usr/share/java/ant/ant-antlr.jar
    /usr/share/java/antlr-2.7.7.jar
    /usr/share/java/antlr.jar
    /usr/lib64/eclipse/plugins/org.apache.ant_1.7.1.v20100518-1145/lib/ant-antlr.jar
    /usr/lib64/gcj/ant/ant-antlr-1.7.1.jar.so
    /usr/lib64/gcj/ant/ant-antlr-1.7.1.jar.db
    /home/bboyle/Development/eclipse/plugins/org.apache.ant_1.7.1.v20090120-1145/lib/ant-antlr.jar

    So, try this: find / -iname '*antlr*.jar'

    i get the output

    /opt/processing/java/mode/antlr.jar
    /opt/apache-ant-1.9.5/lib/ant-antlr.jar
    /opt/apache-ant-1.9.5/lib/antlr-2.7.7.jar
    /opt/apache-ant-1.9.5/lib/antlr-4.5.1-complete.jar
    /opt/apache-ant-1.9.5/lib/optional/ant-antlr.jar
    /opt/apache-ant-1.9.5/lib/optional/antlr-2.7.7.jar
    /opt/apache-ant-1.9.5/lib/optional/antlr-4.5.1-complete.jar
    /opt/apache-ant-1.9.5/apache-ant-1.9.5/lib/ant-antlr.jar
    /opt/apache-ant-1.9.5/apache-ant-1.9.5/lib/antlr-4.5.1-complete.jar
    /opt/apache-ant-1.9.5/build/lib/ant-antlr.jar
    /opt/apache-ant-1.9.5/bootstrap/lib/ant-antlr.jar
    /root/.m2/repository/antlr/antlr/2.7.7/antlr-2.7.7.jar

    it shows it in the right folder as well as some other folders. tried those diff paths with -lib command nothing now what?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •