Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Mobile Tools for Java (MTJ) » How to use preprocessor?
How to use preprocessor? [message #33205] Thu, 23 July 2009 19:13 Go to next message
Andrey is currently offline AndreyFriend
Messages: 52
Registered: July 2009
Member
Hi
I've added this code in me j2me application

//#define SIEMENS
//#ifdef SIEMENS
import com.siemens.mp.io.file.FileConnection;
import com.siemens.mp.io.file.FileSystemRegistry;
//#else
import javax.microedition.io.file.FileConnection;
import javax.microedition.io.file.FileSystemRegistry;
//#endif

However, in Eclipse I have error
"The import javax.microedition.io.file.FileSystemRegistry collides with
another import statement"
So, how can I use preprocessor in Eclipse? Should I install and configure
Antenna for this?

PS I've switched on preprocessor support in project properties via Mobile
Tools for Java->Enable Preprocessing but this not help ;(
Re: How to use preprocessor? [message #33251 is a reply to message #33205] Thu, 23 July 2009 20:13 Go to previous messageGo to next message
David Marques is currently offline David MarquesFriend
Messages: 80
Registered: July 2009
Member
Hi Andrey,

Please take a look at our documentation
( http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .mtj.doc.user/html/gettingstarted/gettingstarted.html).
If still you have no success please send us another message!

Regards,

David Marques

Andrey wrote:

> Hi
> I've added this code in me j2me application

> //#define SIEMENS
> //#ifdef SIEMENS
> import com.siemens.mp.io.file.FileConnection;
> import com.siemens.mp.io.file.FileSystemRegistry;
> //#else
> import javax.microedition.io.file.FileConnection;
> import javax.microedition.io.file.FileSystemRegistry;
> //#endif

> However, in Eclipse I have error
> "The import javax.microedition.io.file.FileSystemRegistry collides with
> another import statement"
> So, how can I use preprocessor in Eclipse? Should I install and configure
> Antenna for this?

> PS I've switched on preprocessor support in project properties via Mobile
> Tools for Java->Enable Preprocessing but this not help ;(
Re: How to use preprocessor? [message #33285 is a reply to message #33205] Thu, 23 July 2009 21:15 Go to previous messageGo to next message
Diego Madruga Sandin is currently offline Diego Madruga SandinFriend
Messages: 116
Registered: July 2009
Senior Member
Hi,

Check the "Configuring Preprocessor Support" section on
http://help.eclipse.org/galileo/topic/org.eclipse.mtj.doc.us er/html/gettingstarted/prepare_workbench.html
maybe this is a problem of workspace configuration.

Regards,
Diego
Re: How to use preprocessor? [message #33390 is a reply to message #33285] Fri, 24 July 2009 21:37 Go to previous message
Andrey is currently offline AndreyFriend
Messages: 52
Registered: July 2009
Member
Hello, Diego!
Seems it helped (MTJ generates different code cause preprocessor
settings), thanks!
However, in Eclipse IDE editor I still have errors (and Quick Fixes
advices too) but Problems tab is empty.
So, last question is how to avoid errors in IDE editor?
Re: How to use preprocessor? [message #575309 is a reply to message #33205] Thu, 23 July 2009 20:13 Go to previous message
David Marques is currently offline David MarquesFriend
Messages: 80
Registered: July 2009
Member
Hi Andrey,

Please take a look at our documentation
( http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .mtj.doc.user/html/gettingstarted/gettingstarted.html).
If still you have no success please send us another message!

Regards,

David Marques

Andrey wrote:

> Hi
> I've added this code in me j2me application

> //#define SIEMENS
> //#ifdef SIEMENS
> import com.siemens.mp.io.file.FileConnection;
> import com.siemens.mp.io.file.FileSystemRegistry;
> //#else
> import javax.microedition.io.file.FileConnection;
> import javax.microedition.io.file.FileSystemRegistry;
> //#endif

> However, in Eclipse I have error
> "The import javax.microedition.io.file.FileSystemRegistry collides with
> another import statement"
> So, how can I use preprocessor in Eclipse? Should I install and configure
> Antenna for this?

> PS I've switched on preprocessor support in project properties via Mobile
> Tools for Java->Enable Preprocessing but this not help ;(
Re: How to use preprocessor? [message #575328 is a reply to message #33205] Thu, 23 July 2009 21:15 Go to previous message
Diego Madruga Sandin is currently offline Diego Madruga SandinFriend
Messages: 116
Registered: July 2009
Senior Member
Hi,

Check the "Configuring Preprocessor Support" section on
http://help.eclipse.org/galileo/topic/org.eclipse.mtj.doc.us er/html/gettingstarted/prepare_workbench.html
maybe this is a problem of workspace configuration.

Regards,
Diego
Re: How to use preprocessor? [message #575396 is a reply to message #33285] Fri, 24 July 2009 21:37 Go to previous message
Andrey is currently offline AndreyFriend
Messages: 52
Registered: July 2009
Member
Hello, Diego!
Seems it helped (MTJ generates different code cause preprocessor
settings), thanks!
However, in Eclipse IDE editor I still have errors (and Quick Fixes
advices too) but Problems tab is empty.
So, last question is how to avoid errors in IDE editor?
Previous Topic:MTJ downloads as P2 repositories
Next Topic:Build state machine has not been initialized
Goto Forum:
  


Current Time: Fri Nov 28 03:38:38 GMT 2014

Powered by FUDForum. Page generated in 0.02417 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software