Tuesday, May 5, 2009

Java Development

If you ever have to do some java development, how do you get started?
Development
IDE: http://www.netbeans.org/
hosting java web applications is done via glassfish (https://glassfish.dev.java.net/ ) on the dev machine this should be automatically be installed with netbeans IDE.

Test and Production
Install Sun GlassFish Enterprise Server (formerly Sun Java System Application Server) http://www.sun.com/software/products/appsrvr
Download http://java.sun.com/javaee/downloads/index.jsp?userOsIndex=6&userOsId=windows&userOsName=Windows
Installation bug when trying to run glassfish as a service. http://wiki.glassfish.java.net/Wiki.jsp?page=FaqRunAsWindowsService

Deploying web application to Test and Production
Right click on solution and select Clean and Build

Navigate to your solution\dist directory a filename.war will be created this is the equivalent to an msi file. Login to glassfish admin

Navigate to web applications and select deploy

Browse to .war file and select OK

No comments:

Post a Comment