Closed 7enderhead closed 1 year ago
hi. That's likely an issue with the use of ~
from the command line... Please use the full path to the jar file and it should work
Although I just noticed that I've been using ~
. hmm... yeah, that should work. did you mvn install
first?
~
manually to not share my username... it actually runs from /home/xyz
mvn install
first:
>mvn install | grep jetty
[...]
[INFO] Including org.eclipse.jetty:jetty-server:jar:11.0.11 in the shaded jar.
[INFO] Including org.eclipse.jetty.toolchain:jetty-jakarta-servlet-api:jar:5.0.2 in the shaded jar.
[INFO] Including org.eclipse.jetty:jetty-http:jar:11.0.11 in the shaded jar.
[INFO] Including org.eclipse.jetty:jetty-util:jar:11.0.11 in the shaded jar.
[INFO] Including org.eclipse.jetty:jetty-io:jar:11.0.11 in the shaded jar.
[INFO] Including org.eclipse.jetty:jetty-webapp:jar:11.0.11 in the shaded jar.
[INFO] Including org.eclipse.jetty:jetty-servlet:jar:11.0.11 in the shaded jar.
[INFO] Including org.eclipse.jetty:jetty-security:jar:11.0.11 in the shaded jar.
[INFO] Including org.eclipse.jetty:jetty-xml:jar:11.0.11 in the shaded jar.
This is very strange. Definitely just a class path issue and not related to the tool though... This is the command I used to executed on the server:
sudo -E nohup java -cp ~/.m2/repository/org/antlr/antlr4-lab/0.2-SNAPSHOT/antlr4-lab-0.2-SNAPSHOT-complete.jar org.antlr.v4.server.ANTLRHttpServer
oh, do you have the -complete on there?
Uhh, my bad. Surely enough I did not run the -complete.jar
... that fixed it!
cool!
commit f8cac5485b47e3b0015e843c4f14da7a3eb6f851
builds into0.2-SNAPSHOT
(not0.1-SNAPSHOT
as per documentation)running produces a
NoClassDefFoundError
: