r/javahelp • u/dpk4 • Jan 02 '18
Can anyone suggest a good tutorial to learn Java EE and Netbeans?
I'm finding a good tutorial (on Youtube or a good pdf) that can explain to me how to configure Netbeans to do my firs JavaEE application. I'm tryng with the code example of my programming teacher but nothing works!
19
Upvotes
3
u/[deleted] Jan 03 '18 edited Jan 03 '18
I don't have any specific recommendations for tutorials, but as I recall, it was fairly straightforward to set up a local glassfish server in Netbeans. This will allow you to run and test your Java EE application locally (in a browser using 127.0.0.1:80)
First, go to tools -> plugins and install Java EE base (you can find this by searching for Java EE or Glassfish in the available plugins tab). In the main Netbeans window, look to the top left where you have Projects/Files/Services. Click the services tab, go to servers, right click and add new server. Once you've done this, you can start/stop the server by right clicking on it.
For learning Java EE, I would recommend starting with something simple like Java servlets. They are very simple applications that can receive HTTP requests, and serve responses. Once comfortable with those, maybe try Java Server Faces (slightly dated now, but a good learning tool) for building web applications that are a little more complex. I remember learning Java Server Faces at university from a book called "Big Java, Late Objects" by Cay Horstmann. Note this book isnt EE focused, it just has a few chapters on it.
PM me with any specific questions if you like, though it has been a while since I've done Java EE myself :)