Community
Participate
Working Groups
Build ID: M20080911-1700 jdk: sun-jdk 1.6.0_11 cpu: intel core2 Steps To Reproduce: create new midlet project in the eclipse. enter the code: public HelloWorld() { String s="A"; //#ifdef impossible s="B"; //#endif } the s="B" always.. because "impossible" is not define anywhere.. it's working fine at netbeans-6.5 is mtj unrealized? at java file in the .processed/ the code is: public HelloWorld() { String s="A"; //#ifdef impossible //@ s="B"; //#endif } why i `create package` or `run it` or `debug it`, s="B" always ?
Hi Weng, Have you followed the preprocessing support steps available in the user guide? - http://dsdp.eclipse.org/help/latest/topic/org.eclipse.mtj.doc.user/html/gettingstarted/prepare_workbench.html "Configuring Preprocessor Support" section. When this steps are not followed correctly, the generated preprocessed code is ignored during the build process. Please, could you attach your log file, so we can analyze the problem? (http://wiki.eclipse.org/FAQ_Where_can_I_find_that_elusive_.log_file%3F) Thanks
i fix my question the s="B" always.. because "impossible" is not define anywhere.. to the s="B" always.. but "impossible" is not define anywhere..
(In reply to comment #1) its solved follow: append osgi.framework.extensions=org.eclipse.mtj.core.hooks to config.ini restart with -clean args. clean the project. rebuild to all thank you for help.
change the resolution since it was not an issue with mtj.
close bugs that are invalid / worksforme
close bug