Originally Posted by bdowling
Why is it a problem? You don't need 1.3 or 1.4 installed. It's invoking the installed javac compiler (1.5) and telling it the version of source code it's getting is 1.3. Why do you need to change it?
I may be confused here. Can we only program for the blackberry using the 1.3x JDK?
I had assumed that if I develop in 1.4, or 1.5, I could change the -source argument to specify that the source code it written in 1.5, and that the -target argument would "downgrade" my code to a 1.1 JVM target? I had thought I could use 1.4 and 1.5 features and it would get downgraded, but I guess that's a pretty tall order.
However, I've created a very SIMPLE test using the DecimalFormat class that indeed does exist in the 1.3 JDK.
I'm working in the Eclipse environment using the eTaras RAPC c ANT task. So, I'm developing in Eclipse, but doing the deployment/simulation via an ANT script which compiles for me. I'm using the V1.8 eTaras jar.
Here's the error I get :
[rim] Building "QuickTipper" project.
[rim] "C:\Program Files\Research In Motion\BlackBerry JDE 4.2.1\bin\rapc.exe" import="C:\Program Files\Research In Motion\BlackBerry JDE 4.2.1\lib\net_rim_api.jar" codename="Quick_Tipper" "Quick_Tipper.rapc" "..\BlackBerryBase\src\java\com\wcs\blackberry\uti l\FormatUtils.java" "..\BlackBerryBase\src\java\com\wcs\blackberry\uti l\TestClass.java" "..\BlackBerryBase\src\java\com\wcs\blackberry\uti l\USCurrencyField.java" "resource\img\tip.png" "src\com\wcs\blackberry\QuickTipper.java" "src\com\wcs\blackberry\QuickTipperFieldChangeList ener.java"
X:\eclipse_workspaces\TEST\QuickTipper\build.xml:5 0: com.etaras.B.A.D: Error!: Error: java compiler failed: javac -source 1.3 -target 1.1 -g -O -d C:\DOCUME~1\mwheaton\LOCALS~1\Temp\rapc_0ee5cde9.d ir -bootcl ...
X:\eclipse_workspaces\TEST\BlackBerryBase\src\java \com\wcs\blackberry\util\TestClass.java:9: package java.text does not exist
X:\eclipse_workspaces\TEST\BlackBerryBase\src\java \com\wcs\blackberry\util\TestClass.java:23: cannot resolve symbol
symbol : class DecimalFormat
location: class com.wcs.blackberry.util.TestClass
DecimalFormat df = new DecimalFormat("0,000.00");