I'm new to java, however in C/C++ there are a few compiler directives such as #ifdef, #ifndef etc to enable developers to compile with specific targets in mind.
i have developed a small midlet which is required to run on several MIDP targets, i.e. nokia, motorola and siemens phones.
i am currently making use of some nokia specific classes, but need to be able to compile to use say motorola equivalents.
is it possible to use the same source? or do i need to have seperate sources for each target? i believe there must be a method, however after searching the web, i have found nothing!