Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » DSDP - Mobile Tools for Java (MTJ) » How to use preprocessor?
How to use preprocessor? [message #575289] Thu, 23 July 2009 19:13
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 ;(
Previous Topic:GBK encoding on console output
Next Topic:GBK encoding on console output
Goto Forum:
  


Current Time: Tue Mar 19 11:47:14 GMT 2024

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

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

Back to the top