开发者

How to manage classpath in eclipse for one project and two build targets

开发者 https://www.devze.com 2023-02-23 05:30 出处:网络
I have Java application project in eclipse. This project contains the one abstract class and two implementations+GUI. In haves two classes with main methods t开发者_如何学Chat launches GUI with one of

I have Java application project in eclipse. This project contains the one abstract class and two implementations+GUI. In haves two classes with main methods t开发者_如何学Chat launches GUI with one of the implementations. Each implementation uses some set of unique jar libraries, another set is of same libs (shared). Is there any way to compile and build first implementation with one set of jars in classpath, another implementation - another set of libs inside one project?


you cant do in eclipse runtime, in single project
i suggest to use Ant for build, using this you can make jar or compile-deploy with your specific jar set

0

精彩评论

暂无评论...
验证码 换一张
取 消