简体   繁体   中英

From java project to package

I am in the following situation: I have two projects in Eclipse(MainProject, SideProject).

Both are Eclipse java project, with their src folders, their libraries and so on...what I aim for is to have the MainProject and the SideProject as a package of the MainProject. The ultimate purpose is to write a servlet inside the MainProject that can launch/stop/restart the SideProject, so I can run both of them simply by launching the MainProject.

Is it possible? For some reason is vital that the SideProject is a package INSIDE the MainProject!

You can add a package to MainProject 's src folder, by right-clicking on the source folder, selecting New, and New package. If you completed this, just copy all files from the SideProject 's src folder to this new package.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM