Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Retired
Posts: 35
Registered: ‎10-25-2010
My Device: Not Specified

Re: 64-bit Windows

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).

 

New Member
Posts: 2
Registered: ‎10-26-2010
My Device: Playbook

Re: 64-bit Windows

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\Windows\BlackBerryTabletSDK-Air-Installer-0.9.0.201010221500.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.exe
7. Save the file
8. Double click the BlackBerryTabletSDK-Air-Installer-0.9.0.201010221500.exe 
et voila!

 

New Member
Posts: 2
Registered: ‎10-26-2010
My Device: Playbook

Re: 64-bit Windows

As similar process can also allow the installation of the simulator, just did it myself.

Contributor
Posts: 47
Registered: ‎06-27-2010
My Device: Bold 9700
My Carrier: AT&T

Re: 64-bit Windows

So my system JRE is 32-bit (I am on win 7 64 bit)

 

 

C:\Users\kbauer\workspace\bbdev\HelloWorld>java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pwi32devifx-20090505 (SR
9-0 +IZ49764))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows Vista x86-32 j9vmwi3223ifx-2
0090422 (JIT enabled)
J9VM - 20090421_34076_lHdSMr
JIT  - 20081112_1511ifx6_r8
GC   - 200811_07)
JCL  - 20090505

 

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-sdk-0.9.0\bin\blackberry-airpackager" -package %barfile% -installApp -launchApp %xmlfile% %swffile% %iconfile% -device %ip%

 

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?

Contributor
Posts: 47
Registered: ‎06-27-2010
My Device: Bold 9700
My Carrier: AT&T

Re: 64-bit Windows

 

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\Windows\BlackBerryTabletSDK-Air-Installer-0.9.0.201010221500.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.exe
7. Save the file
8. Double click the BlackBerryTabletSDK-Air-Installer-0.9.0.201010221500.exe 
et voila!

 


 

Developer
Posts: 85
Registered: ‎10-25-2010
My Device: Not Specified

Re: 64-bit Windows

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

Hope this helps,
Fabien

--
1. If you liked my post or found it useful please click on the white star and provide a Kudo!
2. If my post solved your problem please click on the Accept as Solution button. Much appreciated!
Contributor
Posts: 47
Registered: ‎06-27-2010
My Device: Bold 9700
My Carrier: AT&T

Re: 64-bit Windows

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?

Developer
Posts: 85
Registered: ‎10-25-2010
My Device: Not Specified

Re: 64-bit Windows

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

Hope this helps,
Fabien

--
1. If you liked my post or found it useful please click on the white star and provide a Kudo!
2. If my post solved your problem please click on the Accept as Solution button. Much appreciated!
Contributor
Posts: 47
Registered: ‎06-27-2010
My Device: Bold 9700
My Carrier: AT&T

Re: 64-bit Windows

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...

 

The java class could not be loaded. java.lang.UnsupportedClassVersionError: (com
/qnx/bbt/airpackager/BarAirPackager) bad major version at offset=6

 

So it seems like it is still trying to use my Java 5.

Developer
Posts: 85
Registered: ‎10-25-2010
My Device: Not Specified

Re: 64-bit Windows

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

Hope this helps,
Fabien

--
1. If you liked my post or found it useful please click on the white star and provide a Kudo!
2. If my post solved your problem please click on the Accept as Solution button. Much appreciated!