Skip to main content

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

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


Back to the top