×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Aug 2003
    Posts
    2

    multiple target directives

    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!

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    There is Antenna, which uses ant tasks.
    And you could run your code through a C preprocessor before compiling.

    shmoove

  3. #3
    Registered User
    Join Date
    Jul 2003
    Location
    Finland, Tampere
    Posts
    1,113
    shmoove
    Nice things. In case of MIDlets preprocessor can be really useful.
    In JBuilder there are even some menus for Ant.

    I never worked with it.

    Does anybody know any tutorials or articles on how use preprocessor from JBuilder IDE?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×