eclipse - How to share code between a Java Web app and a normal Java app -


I have a small private project that includes the following Eclipse workspace.

  + + -MyApp // This is just a vanilla Java application -MyWebApp // This dynamic Java Web Application (Tomcat) + -MicomManstaf // This is a normal class / x Database access code & Amp; Business Class  

All this is well and good when I'm running on Eclipse Cause, I can use Eclipse Build property so that two applications can get reference to the general project.
Now I'm thinking about how to employ my app on Linux server and I'm wondering how to do this. Can Eclipse be used to make a proper goal, which can then refer to general goods when running in a living environment?
Or will I have to learn how to use builders such as ant or maven i thanks

You need to add and add common projects in the way of building webpage projects.

In the properties of your webpage project, Java build path > < Em> Projects and add them to your workspace on general Select plans to build the path again, select Java EE module dependencies in the project WEB-INF / lib show . It should happen.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -