grammars-v4 icon indicating copy to clipboard operation
grammars-v4 copied to clipboard

java.lang.ClassNotFoundException: NASMLexer

Open jmikedupont2 opened this issue 2 years ago • 1 comments
trafficstars

running mvn test gives [INFO] --- antlr4test:1.22:test (default) @ nasm --- [INFO] Evaluating Scenario: Default Scenario java.lang.ClassNotFoundException: NASMLexer at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:592)

jmikedupont2 avatar Nov 15 '23 03:11 jmikedupont2

Looks like the pom.xml is not correct. Here is the fix.

$ git diff .
diff --git a/asm/nasm/pom.xml b/asm/nasm/pom.xml
index c2c913f7..b4944dcf 100644
--- a/asm/nasm/pom.xml
+++ b/asm/nasm/pom.xml
@@ -39,8 +39,8 @@
                                <configuration>
                                        <verbose>false</verbose>
                                        <showTree>false</showTree>
-                                       <entryPoint>compilationUnit</entryPoint>
-                                       <grammarName>NASM</grammarName>
+                                       <entryPoint>program</entryPoint>
+                                       <grammarName>nasm_x86_64_</grammarName>
                                        <exampleFiles>examples/</exampleFiles>
                                </configuration>
                                <executions>
11/15-07:34:16 ~/issues/current-grammars/asm/nasm

kaby76 avatar Nov 15 '23 12:11 kaby76