BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 02-23-2012, 04: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 01:43 PM
Transferring / Importing Contacts from CSV file 0x80040057 error - How to fix tkessler2 General BlackBerry Discussion 1 01-08-2010 09: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 07:41 PM
Funambol 3.0.7 jad file riskable Linux Users Corner 3 11-14-2007 07:46 PM

Vintage Wood/Metal Printing Block Stamp for Kraft Mac N Cheese Dinner, 1959
$12.0
Vintage Wood/Metal Printing Block Stamp for Kraft Mac N Cheese Dinner, 1959 pictureGW Instruments MacADIOS - Vintage Mac Lab Interface 411
$169.0
GW Instruments MacADIOS - Vintage Mac Lab Interface 411 pictureVintage 1/2" Drive MAC VUI 166T 6 Point Impact Swivel Socket
$11.95
Vintage 1/2Vintage Flaring Tools MAC FT-9, Imperial, Large & Small Cutters in metal box
$6.49
Vintage Flaring Tools MAC FT-9, Imperial, Large & Small Cutters in metal box pictureVintage Mac Tools No. 200 Dial Indicator Set
$59.99
Vintage Mac Tools No. 200 Dial Indicator Set picture






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