There is a class, that compiles with the android platform and the jdk. Now, the idea is, to use that class in two projects, one is a android one and the other result in a java application.
So, I cretae a project with two modules, one for the android and one for the java solution. All works fine, with copy&paste the class-source between the two modules, but that is not very comfortable to use.
So, the question is, how it can be done without copy&paste. I would prefer a intellij solution, but I am willing to change to eclipse if needed.
Thanks for all answers.
FWIW, here’s what I have working using NetBeans 7.1.1 … it’s possible that some of these steps aren’t needed, but after a couple of days experimenting this seems to work.
The classes in the “Shared1” project are now usable in both the desktop environment and the Android environment.
BEWARE!!!! Using java.awt classes in the “Shared” library classes doesn’t generate any compiler warnings, but causes the Android application to crash. Subsequent runs also crash, even if the java.awt reference has been removed and Clean & Build done on everything!!!