- javac WebServer.java
- java WebServer
- Then point your browser to localhost
- To kill the server type murder in the text box
Another nice thing about this setup as opposed to a normal application, that instead of minimizing, iconifying, or putting it in the system tray to get rid of it but still have it running, you can simply navigate away from the page and then come back later.