10-25-2010 10:48 AM
The SDK installer does not bundle Java. The installer has to search for your 32 bit Java VM. You can either download one, or if you have Flash Builder 4 installed you can use its "jre" (make sure it's in your search path).
10-26-2010 12:36 AM
Ok, this works for Windows 7 x64.
1. Install a java vm for "Windows" (aka the 32bit version from Oracle)
2. Reboot after install
3. Unzip the BlackBerryTabletSDK-Air-Installer-0.9.0-Win.exe installer file (I used 7zip)
4. Navigate to this file:
BlackBerryTabletSDK-Air-Installer-0.9.0-Win\Window
5. Locate this property:
lax.nl.current.vm=
10-26-2010 12:42 AM
As similar process can also allow the installation of the simulator, just did it myself.
10-26-2010 04:00 PM
So my system JRE is 32-bit (I am on win 7 64 bit)
C:\Users\kbauer\workspace\bbdev\HelloWorld>java -versionjava version "1.5.0"Java(TM) 2 Runtime Environment, Standard Edition (build pwi32devifx-20090505 (SR9-0 +IZ49764))IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows Vista x86-32 j9vmwi3223ifx-20090422 (JIT enabled)J9VM - 20090421_34076_lHdSMrJIT - 20081112_1511ifx6_r8GC - 200811_07)JCL - 20090505
but when I try to run the BlackBerry air packager command...
"C:\Users\kbauer\bbAir\tabletsdk\blackberry-tablet
I get the following error...
The java class could not be loaded. java.lang.UnsupportedClassVersionError: (com
/qnx/bbt/airpackager/BarAirPackager) bad major version at offset=6
So does the SDK require a Java 6?
Should I uninstall the SDK try the tricks above to point to a Java 6 32 bit JRE and reinstall the SDK? DO I need to do the same for the simulator?
10-26-2010 04:31 PM
Did you unzip the exe or did you just open it with 7-zip and update the file?
When I tried to update the .lax file with the exe open in 7-zip it said I could not update the archive.
When I unzipped it I was not sure what options to choose when re-zipping so that it stayed executable. I tried a few and windows keep saying the program could not be run due to incompatibility with 64-bit windows.
mondain wrote:Ok, this works for Windows 7 x64.
1. Install a java vm for "Windows" (aka the 32bit version from Oracle)
2. Reboot after install
3. Unzip the BlackBerryTabletSDK-Air-Installer-0.9.0-Win.exe installer file (I used 7zip)
4. Navigate to this file:
BlackBerryTabletSDK-Air-Installer-0.9.0-Win\Window
s\BlackBerryTabletSDK-Air-Installer-0.9.0.20101022 1500.lax 5. Locate this property:
lax.nl.current.vm=
6. Set it to the location where you installed the 32 bit jvm (default location shown)lax.nl.current.vm=C:/Program Files (x86)/Java/jdk1.6.0_22/bin/javaw.exe7. Save the file8. Double click the BlackBerryTabletSDK-Air-Installer-0.9.0.201010221500.exe et voila!
10-26-2010 04:35 PM
Hi kmbauer,
you need to extract the content of the exe on your disk, don't open the exe in 7zip and make the modifications. Right Click on the exe, Extract to ... Now you have the .lax and the .exe inside another folder that was just created. Modify the .lax and then run the exe (not the original one, the one that u extracted).
Hope this helps,
Fabien
10-26-2010 04:38 PM
Doh! Makes sense thanks.
Any idea if I can install over my previous SDK install or figure out a way to uninstall the previous install?
10-26-2010 04:41 PM
Hi,
i personnaly don't recommand installing over an existing SDK as the BB SDK is still beta. Best solution is to download the AIR 2.5 SDK and extract it anywhere. Then with the BB installer u downloaded from the developper resources, point to that SDK and a special BB SDK with everything in it will be created in your Flash Builder SDKs
Fabien
10-26-2010 05:27 PM
No luck I completely reinstalled the sdk into a new directory with a modified .lax pointing to my java 6 installed. Re-installed the SDK.
Opened a new command line window rebuilt by .swf and when I try to deploy it with the blackberry-airpackager I get...
So it seems like it is still trying to use my Java 5.
10-26-2010 05:32 PM
Oh sorry, i thought u were talking about the AIR SDK, not about Java. The .lax files trick is just to be able to execute the installer on a 64 bits machine, if you have an issue with blackberry-airpackager, u don't need to do the whole re-install process, it is simply a Java problem on your machine.
Try updating your windows path with your JRE6 (dont forget to close all cmd and open a new one before running blackberry-airpackager or your path wont be refreshed
Fabien