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.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.1or- ::1. For all interfaces, we can use- -b 0.0.0.0or- -b ::. The- –b addris 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- –pport option is similar to- --port port.
- -d dir: The- dirvariable points out the directory to be served. The default is the current directory. The- –d diris similar to- --directory dir.
- -o level: The- levelvariable can be- none,- info(default), or- verboseand it specifies the output format. The- –o levelis similar to- --output level...
 
                                             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
     
         
                 
                 
                 
                 
                 
                 
                 
                 
                