You should create two separated pojects (simple java projects) for server and client. This project was made on EclipseIDE.