ok, it seems that there is smth wrong with eclipse complier. i downloaded JDE from RIM and when i use that, everything works, except that i do not get the message that i should. i mean with this simple code:
Code:
//#preprocess
import net.rim.device.api.ui.UiApplication;
public class PrepTest extends UiApplication{
public PrepTest() {
//#define abc
//#ifdef abc
System.out.println("there is abc");
//#elseif
System.out.println("no abc");
//#endif
}
public static void main(String[] args) {
PrepTest x = new PrepTest();
x.enterEventDispatcher();
}
}
i'm getting 'no abc'.. but why?? it is written that
//#define abc
in *.jdp file the only thing i changed is:
Options=-quiet -define=PREPROCESSOR
i did not define 'abc' there. cause i do not want to define anything in any file. i want to use preprocessor to define things when i need (in the source of my application). i thought that
//#define abc
works like that and that then it will be visibile in application that abc is defined so that i can go to the proper conditions..