Reader small image

You're reading from  Java Coding Problems - Second Edition

Product typeBook
Published inMar 2024
PublisherPackt
ISBN-139781837633944
Edition2nd Edition
Right arrow
Author (1)
Anghel Leonard
Anghel Leonard
author image
Anghel Leonard

Anghel Leonard is a Chief Technology Strategist and independent consultant with 20+ years of experience in the Java ecosystem. In daily work, he is focused on architecting and developing Java distributed applications that empower robust architectures, clean code, and high-performance. Also passionate about coaching, mentoring and technical leadership. He is the author of several books, videos and dozens of articles related to Java technologies.
Read more about Anghel Leonard

Right arrow

270. Exploring the SWS command-line tool

The only prerequisite for running the SWS command-line tool (jwebserver) is JDK 18 and the following syntax:

Figure 13.5.png

Figure 13.7: jwebserver command-line tool syntax

The options of jwebserver are straightforward. Here is a short description of the most useful ones:

  • -b addr: This is the binding address. It defaults to the loopback, 127.0.0.1 or ::1. For all interfaces, we can use -b 0.0.0.0 or -b ::. The –b addr is similar to--bind-address addr.
  • -p port: This specifies the port on which the SWS will listen for incoming requests. The default port is 8000. The –p port option is similar to--port port.
  • -d dir: The dir variable points out the directory to be served. The default is the current directory. The –d dir is similar to--directory dir.
  • -o level: The level variable can be none, info (default), or verbose and it specifies the output format. The –o level is similar to --output level...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Java Coding Problems - Second Edition
Published in: Mar 2024Publisher: PacktISBN-13: 9781837633944

Author (1)

author image
Anghel Leonard

Anghel Leonard is a Chief Technology Strategist and independent consultant with 20+ years of experience in the Java ecosystem. In daily work, he is focused on architecting and developing Java distributed applications that empower robust architectures, clean code, and high-performance. Also passionate about coaching, mentoring and technical leadership. He is the author of several books, videos and dozens of articles related to Java technologies.
Read more about Anghel Leonard