I’ve been developing Java with Netbeans and have been using the “Run” command on my project to initialize my testing. I’m using Windows 7. Is it possible for me to run a Java server isolated from Netbeans and use it for my testing so I can learn the basics of a Java server not tied to Netbeans? If so, what should I google?
Share
The simplest server to start with is Jetty , as it’s 100% java and embedded easily with no platform specific dependencies. To install jetty, you need only unzip the download.
Once you run a simple jetty tutorial, use netbeans to create a war file – and you can then easily deploy your web application in jetty by just dragging the war to the appropriate folder in jettys home directory.
Now — To learn about how java web servers work , you can read the terminal logs that jetty produces, which are quite informative** – you can watch as it decompresses and deploys your .war file, etc… And use any old java profilers to monitor its memory/cpu usage.