Java ME + SE Application Development
I want to implement a multi-platform application which should run on common devices using Java SE and on mobile ones using Java ME.
The main functionality can be easily implemented for both. But some things, like GUI or access to other interfaces (e.g. bluetooth) are very different between SE and ME.
What's the best way to develop such multi-plattform applications? I have planned to encapsulate ME/SE specific functionality into classes sharing a common interface. Is there something similar like the "#IFDEF" in C++?
P.S: I am using Eclipse 3 for development at the moment.