I am using Java to write a mid scale product that has multiple programs.
You can think of this project as a MMOG, with server-side, client-side, and other programs.
Since Java has this notion of Projects and Packages, can I put everything in one single Project but separated by Packages? Or do I have to resort to a Project for each individual program?
If there is a way to put all together, that’ll be great, because right now I am getting a “Could not find Main” error.
Thank you
You can put them all in one project with packages, as long as you have a main function in a class for each package. However, when you build the project, it will go through everything, and if you decide to export, everything will be included in the jar file. On the other hand, if you separate them into projects, everything will be neat and clean. They will be separate and you can export them separately, however, if the projects need access to one another, you must make sure to include each project on the build path of the dependent projects.