I want to serve a directory so I could open an html webpage. My structure is as follows:
C:\
¦
¦-- myProj\
¦
¦index.html
¦
¦jar\
¦
jetty-distribution-9.4.18.v20190429\
¦
¦(some jetty folders...)
¦(some jetty files...)
¦start.jar
and inside the folder C:\myProj\jar\jetty-distribution-9.4.18.v20190429
I have unzipped jetty-distribution-9.4.18.v20190429.zip
which I downloaded from Eclipse Jetty Downloads.
I then cd C:\myProj
and try to start the server with the following
java -jar ./jar/jetty-distribution-9.4.18.v20190429/start.jar
However I receive the following msg
C:\myProj>java -jar ./jar/jetty-distribution-9.4.18.v20190429/start.jar
ERROR : Nothing to start, exiting ...
Usage: java -jar $JETTY_HOME/start.jar [options] [properties] [configs]
java -jar $JETTY_HOME/start.jar --help # for more information
What am I doing wrong please? According to this example near the bottom of the page in the documentation it should work
"The following demonstrates this by allowing default discovery of ${jetty.home} via locating the start.jar, and using the user.dir System Property for ${jetty.base}."
[jetty-distribution-9.4.18.v20190429]$ pwd
/home/user/jetty-distribution-9.4.18.v20190429
[jetty-distribution-9.4.18.v20190429]$ cd /home/user/my-base
[my-base]$ java -jar /home/user/jetty-distribution-9.4.18.v20190429/start.jar
2013-10-16 09:08:47.802:INFO:oejs.Server:main: jetty-9.4.18.v20190429
2013-10-16 09:08:47.817:INFO:oejdp.ScanningAppProvider:main: Deployment monitor [file:/home/user/my-base/webapps/] at interval 1
Obviously I must be missing something here....