开发者

Is it possible to have an Eclipse project w/ one package that executes as a Android app, and a second package that executes as a Java SE app?

I know that must sound crazy... Here's the situation. I am developing an Android application in Eclipse. The Java Swing-based level designer 开发者_StackOverflow中文版for the Android app is in Java SE and currently runs in NetBeans. This editor program creates and serializes levels which are then deserialized by the android app. The serialized levels consist of about 12 classes and run in both Java SE and Android. These classes are the glue holding the two programs together. I'd like a setup like so:

com.androidSpecific

com.sharedData

com.JavaSESpecific.

Where I can click on some stuff and run the level editor, and then click on some other stuff and load up the Android app. Is there a way to make dream come true?


Set up two different projects in Eclipse. You can tell Eclipse that one Project depends on the other to resolve shared code. Or, you can extract the common-code to a third project, and have the Android and JSE projects contain the -specific code for those environments.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜