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 #575289] Thu, 23 July 2009 15:13
Andrey is currently offline Andrey
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 ;(
Previous Topic:GBK encoding on console output
Next Topic:GBK encoding on console output
Goto Forum:
  


Current Time: Thu Aug 21 16:07:57 EDT 2014

Powered by FUDForum. Page generated in 0.01522 seconds