BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 02-23-2012, 03:15 AM   #1 (permalink)
New Member
 
Join Date: Dec 2011
Model: 8520
PIN: N/A
Carrier: Vodafone
Posts: 14
Post Thanks: 2
Thanked 0 Times in 0 Posts
Default How to exclude a file before compilation

Please Login to Remove!

Hi,

My issue is that I have to develop an app which should work in both OS 5.0 and Os 6.0. In version 5 json is not there so I had added the Json classes to it.This worked fien for me.But when I tried to run it using JRE version 6.0 I got an Error saying Duplicate file exists JSOnArray.java .This is because in version 6.0 we have the JSON classes already inbulit and the classes I added is causing the duplication error.

How can this be solved?I want to run the App in both 5 and 6 versions.Also I came to know that this can be solved using preprocessors.How can this be done? How can I exclude the JSON classes when running in versions greater than 5.0?
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads for: How to exclude a file before compilation
Thread Thread Starter Forum Replies Last Post
import contacts from excel or csv to BB ultra99 General 9700 Series Discussion - Bold 2 12 01-08-2010 12:43 PM
Transferring / Importing Contacts from CSV file 0x80040057 error - How to fix tkessler2 General BlackBerry Discussion 1 01-08-2010 08:19 AM
BES 4.1.3 / BES 4.1.4 - Export Filters to File Agriv8 BES Admin Corner 4 09-24-2008 09:06 AM
Sync Error....What could it be? kurrupt_1 General 8300 Series Discussion - Curve 7 11-22-2007 06:41 PM
Funambol 3.0.7 jad file riskable Linux Users Corner 3 11-14-2007 06:46 PM

HP ProLiant DL160 G6 2xIntel Xeon Hexa Core X5650 2.67GHz 12GB RAM 6x146GB HDD
$199.0
HP ProLiant DL160 G6 2xIntel Xeon Hexa Core X5650 2.67GHz 12GB RAM 6x146GB HDD pictureIntel Pentium III Xeon 667Mhz BX80526KZ667256 SL3ST 2000 Sealed Unopened
$19.99
Intel Pentium III Xeon 667Mhz BX80526KZ667256 SL3ST 2000 Sealed Unopened pictureHoneywell Xeon 1900 USB Barcode Scanner 1900HHD-0 W/Cable
$39.99
Honeywell Xeon 1900 USB Barcode Scanner 1900HHD-0 W/Cable picturePortwell Single Board Computer B9300324AB18820820 a1 Dual Intel Xeon 2.8GHz SBC
$265.0
Portwell Single Board Computer B9300324AB18820820 a1 Dual Intel Xeon 2.8GHz SBC pictureIntel Server Board SE7320SP2 For Intel Xeon Processors ~~ Original Box ~ UNUSED
$20.0
Intel Server Board SE7320SP2 For Intel Xeon Processors ~~ Original Box ~ UNUSED picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.