By the way, I advise you to read the documentation of the java command, especially about "-jar":"When you use -jar, the specified JAR file is the source of all user classes, and other class path settings are ignored"Put agilemesh.dronevideo-1.0.0.jar into the classpath too and specify the name
Kelly,
I think you are missing other dependencies. See the output of mvn
dependency:tree for jetty server:
[INFO] org.eclipse.jetty:jetty-server:jar:11.0.10-SNAPSHOT
[INFO] +-
org.eclipse.jetty.toolchain:jetty-jakarta-servlet-api:jar:5.0.2:compile
[INFO] +-
Hi, Thanks for the reply,
I tried the following, as you suggested but I still get the same error.
java -cp $JETTY_HOME/lib/jetty-server-11.0.9.jar -jar
agilemesh.dronevideo-1.0.0.jar
Error: Unable to initialize main class agilemesh.dronevideo.DroneVideo
Caused by:
Your classpath declaration is bad.
"$JETTY_HOME/lib/annotations;$JETTY_HOME/lib;$JETTY_HOME/lib/apache-jsp;$JETTY_HOME/lib/jaspi;$JETTY_HOME/lib/logging;./"
That style of definition (where the entry ends in a slash) is for unpacked
jars, which you don't have.
Also you cannot include in your
Hi,
I have been looking for several days now this answer.
I develop on Windows 11 using Eclipse IDE and then I create a jar file
using the install goal with the run configuration. This does create a
jar file in the target directory.
I then copy the jar file to a Linux system, this system