How to use preprocessor? [message #575289] |
Thu, 23 July 2009 19:13 |
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 ;(
|
|
|
Powered by
FUDForum. Page generated in 0.02132 seconds