JWEBSERVER(1) JDK Commands JWEBSERVER(1) (NAME) jwebserver - (Java Simple Web Server) (SYNOPSIS) jwebserver [] . . (DESCRIPTION) jwebserver (HTTP server) . (static) . HTTP/1.1 HTTP/2 HTTPS . (idempotent) HEAD GET . 501 - Not Implemented 405 - Not Allowed . GET : o . o (index) . o . (symbolic links) . MIME . .html text/html .java text/plain . jwebserver jdk.httpserver java -m jdk.httpserver . com.sun.net.httpserver . com.sun.net.httpserver.SimpleFileServer . (USAGE) jwebserver [-b ] [-p ] [-d ] [-o none|info|verbose] [-h ] [-version ] (OPTIONS) -h -? --help . -b addr --bind-address addr (bind) . : 127.0.0.1 ::1 (). -b 0.0.0.0 -b :: . -d dir --directory dir . : . -o level --output level . : none | info | verbose. : info. -p port --port port (port) . : 8000. -version --version . Ctrl + C . (STARTING THE SERVER) : $ jwebserver System.out . : $ jwebserver Binding to loopback by default. For all interfaces use "-b 0.0.0.0" or "-b ::". Serving /cwd and subdirectories on 127.0.0.1 port 8000 URL http://127.0.0.1:8000 (CONFIGURATION) 8000 . -b -p . : $ jwebserver -b 0.0.0.0 Serving /cwd and subdirectories on 0.0.0.0 (all interfaces) port 8000 URL http://123.456.7.891:8000 . . 9000 : $ jwebserver -p 9000 . -d . (log) . : 127.0.0.1 - - [10/Feb/2021:14:34:11 +0000] "GET /some/subdirectory/ HTTP/1.1" 200 - -o . info . verbose . (STOPPING THE SERVER) . SIGINT ( Ctrl+C ) . (HELP OPTION) -h jwebserver . JDK 25.0.4.1 2026 JWEBSERVER(1)