OpenJDK 11 doesn't read ANTLR v4 runtime .jar

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

I am trying to follow ANTLR getting started using native Fedora packages.
https://github.com/antlr/antlr4/blob/master/doc/getting-started.md

I've got `Hello*.java` files which fail to compile because of missing `org.antlr.v4.runtime`,
but I do have `/usr/share/java/antlr4/antlr4-runtime.jar` which contains all files.

Archive:  /usr/share/java/antlr4/antlr4-runtime.jar
Zip file size: 332076 bytes, number of entries: 237
-rw----     2.0 fat     1839 b- defN 20-Nov-30 18:19 META-INF/MANIFEST.MF
drwxr-xr-x  2.0 unx        0 b- stor 20-Nov-30 18:15 META-INF/
drwxr-xr-x  2.0 unx        0 b- stor 20-Nov-30 18:15 org/
drwxr-xr-x  2.0 unx        0 b- stor 20-Nov-30 18:15 org/antlr/
drwxr-xr-x  2.0 unx        0 b- stor 20-Nov-30 18:15 org/antlr/v4/
drwxr-xr-x  2.0 unx        0 b- stor 20-Nov-30 18:15 org/antlr/v4/runtime/
drwxr-xr-x  2.0 unx        0 b- stor 20-Nov-30 18:15 org/antlr/v4/runtime/misc/
drwxr-xr-x  2.0 unx        0 b- stor 20-Nov-30 18:15 org/antlr/v4/runtime/atn/
drwxr-xr-x  2.0 unx        0 b- stor 20-Nov-30 18:15 org/antlr/v4/runtime/dfa/
drwxr-xr-x  2.0 unx        0 b- stor 20-Nov-30 18:15 org/antlr/v4/runtime/tree/
drwxr-xr-x  2.0 unx        0 b- stor 20-Nov-30 18:15 org/antlr/v4/runtime/tree/pattern/
drwxr-xr-x  2.0 unx        0 b- stor 20-Nov-30 18:15 org/antlr/v4/runtime/tree/xpath/
drwxr-xr-x  2.0 unx        0 b- stor 20-Nov-30 18:15 META-INF/maven/
drwxr-xr-x  2.0 unx        0 b- stor 20-Nov-30 18:15 META-INF/maven/org.antlr/
drwxr-xr-x  2.0 unx        0 b- stor 20-Nov-30 18:15 META-INF/maven/org.antlr/antlr4-runtime/
-rw-r--r--  2.0 unx     2490 b- defN 20-Nov-30 18:15 org/antlr/v4/runtime/CodePointCharStream$CodePoint8BitCharStream.class
-rw-r--r--  2.0 unx      824 b- defN 20-Nov-30 18:15 org/antlr/v4/runtime/CodePointBuffer$1.class
-rw-r--r--  2.0 unx      752 b- defN 20-Nov-30 18:15 org/antlr/v4/runtime/Token.class
-rw-r--r--  2.0 unx     1844 b- defN 20-Nov-30 18:15 org/antlr/v4/runtime/TokenStreamRewriter$RewriteOperation.class
-rw-r--r--  2.0 unx     6750 b- defN 20-Nov-30 18:15 org/antlr/v4/runtime/CodePointBuffer$Builder.class

However, when I specify it in `-classpath`, the `javac` still doesn't those.

    $ javac -classpath /usr/share/java/antlr4-runtime.jar  Hello*.java         
    HelloBaseListener.java:3: error: package org.antlr.v4.runtime does not exist
    import org.antlr.v4.runtime.ParserRuleContext;
                              ^
   HelloBaseListener.java:4: error: package org.antlr.v4.runtime.tree does not exist
   import org.antlr.v4.runtime.tree.ErrorNode;
                                   ^

I am on Fedora 33.
_______________________________________________
java-devel mailing list -- java-devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to java-devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/java-devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Red Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux