Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [dsdp-mtj-dev] Preprocessing in MTJ

Hi Paula, thanks for the quick response. I've added the proper line, and I got it to work (but I had to add spaces between the // and #).

I didn't see it in any MTJ documentation. I read some of the documentation (what I could find) when I first began working with MTJ (a little over a month ago) and didn't read about it. I also didn't find it in the "Java ME" guide in Eclipse help (though I do like the thoroughness of it). I could have missed it somewhere, but my recent searches turned up nothing.

Again, thanks for the help! We've decided to ditch support for this troublesome i730 anyways, but I'm sure the preprocessor features will come in handy sometime soon...

Anthony Aziz
http://blog.aaziz.org


On Tue, Dec 2, 2008 at 2:07 PM, Paula Gustavo-WGP010 <wgp010@xxxxxxxxxxxx> wrote:

Hi anthony,

 

Did you change your eclipse config.ini file? You need to add the following line on it

osgi.framework.extensions=org.eclipse.mtj.core.hooks

 

I think mtj documentation describes that. if not we need to fix it J

 

Thanks and I hope it solves the problem

J

gep

 


De: dsdp-mtj-dev-bounces@xxxxxxxxxxx [mailto:dsdp-mtj-dev-bounces@xxxxxxxxxxx] Em nome de Anthony Aziz
Enviada em: terça-feira, 2 de dezembro de 2008 15:32
Para: dsdp-mtj-dev@xxxxxxxxxxx
Assunto: [dsdp-mtj-dev] Preprocessing in MTJ

 

Hi, sorry if this isn't the discussion for this, put I'm at a dead-end for MTJ help.

I'm working with a few incompatible models (namely Motorola i730, which doesn't have double support, argh!), and I'm been looking into preprocessing. However, I haven't been able to get it to work.

I've enabled preprocessing, and set the antenna and WTK directories, but the actual directives aren't working. Sample code:

public class Test extends MIDlet
{

    public Test()
    {
        //#define DEBUG

        //#ifdef DEBUG
        System.out.println("Debug");
        //#else
        System.out.println("Not Debug");
        //#endif
       
        //#ifdef DEBUG
        System.out.println("Debug");
        //#endif
       
        //#ifndef DEBUG
        System.out.println("Not Debug");
        //#endif
    }

    protected void destroyApp(boolean arg0) throws MIDletStateChangeException
    {
        // TODO Auto-generated method stub

    }

    protected void pauseApp()
    {
        // TODO Auto-generated method stub

    }

    protected void startApp() throws MIDletStateChangeException
    {
        // TODO Auto-generated method stub

    }

}


Every one of those statements is outputted. I'm not sure what other information I can give, but let me know and I'll post it. Thanks,

Anthony Aziz
http://blog.aaziz.org


_______________________________________________
dsdp-mtj-dev mailing list
dsdp-mtj-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev



Back to the top