davis@kafka:~$ java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)
Check your machine clock to make sure it is correct.
You post on 10/14, but the time of your command output shows 10/15 already.
It looke like the clock is wrong.
It isn't the timestamp. I double checked and it is correct, and I updated via ntp, and re-ran, still the same issue.
I'm more suspicious that it is b/c I'm using a 64-bit JDK. I'm guessing that maybe your tools like adt don't work on the 64-bit JDK.
Would that suspicion be correct?
Could you try "-target air" instead of "-target native" and see if adt can generate an AIR file?
If the AIR file is generated, try to install it to see if there is any error message.
I know we test with 64bit OS. But I am not sure about 64bit JDK. I will follow up on this.
I am trying here with the same error.
Ubuntu 32 and 64 bits version with Sun Java 1.6.
-target air works fine.
I forgot to follow up on this.
64bit should not be a problem.
In you case, I am pretty sure it is your machine's clock problem.
If you turn off the timestamp option (-tsa none), the native installer should be generated.
Try the following steps to see if your problem would go away.
1. change your clock to a few days back, say last week.
2. generate a self sign certificate with adt.
3. sync your machine's clock with internet.
4. package the AIR file.
5. convert the AIR file to native installer.
In AIR's latest releases, we have tried to reduce this problem by making the certificate valid one day earlier.
In my case I have double checked my machine's timestamp, and it isn't
messed up. I also installed ubuntu 32-bit on a mac book pro recently,
and tried to compile there and the same problem exists.
I have sync'd with NTP, so the timestamp is right, but I will try it
with the -tsa none o
Have you tried to install the AIR file generated?
Does the Runtime refuse to install the AIR file?
If yes, then it is the time problem. If not, then there might be something else.
BTW, which time zone are you in? You might try to change the time zone to US Pasific timezone to see if the problem goes away.
I'm in EST. I'll test it out with the intermediate .air file.
Tested with -tsa none and the error contines.
I thought I should chime in and say I'm also having this issue. I've tried all of the possible workaround/solutions described here. Even when trying to package a native installer from an existing (working) AIR installer, I get "Invalid AIR file".
Any updates on this? I'm happy to help troubleshoot.
My commercial app needs to run on Ubuntu/linux with access to native processes, so finding a solution to this is a high priority for me as it likely is to others.
Thanks in advance.
Interactive Experience Development
e email@example.com w marcelray.com
I'm still stuck here...none of the suggested workarounds work for me either.
Have you tried with other flavors of Debian, versions of AIR or of Ubuntu?
I’m about to head down that path, but no sense in wasting energy if I know
they’ll all lead to dead ends.
Regardless, will post my results as I’m sure many others will be seeing this
thread hoping for answers.
I was able to get it working with the following software combination:
Ubuntu 10.04 x64
Sun Java JDK 1.5.0_22
Adobe AIR 2.5 (using these instructions for x64: http://kb2.adobe.com/cps/521/cpsid_52132.html)
Basically, I went back a major release with all of the major software just to test things out with a more tried and true configuration. I'm hoping to have some time to start installing the latest version for each component to pin it down to a specific software package/version.
FYI: I'm using VMWare Fusion on the Mac.
In the meantime, hope this helps!
After some more playing, I was able to get it to work with the latest versions of Ubuntu, Flex SDK, AIR SDK and the Sun JDK:
- Ubuntu 10.10
- Sun JDK 126.96.36.199
- Flex SDK 4.1.0
- AIR SDK 2.5.0
Strangely, I think this is the same config I had before when it wasn't working. However, this time I made it a point to install the Sun JDK manually, rather than via a DEB or other installer.
Here are links to all of the Linux packages I used:
Java SE 6 Update 23 > jdk-6u23-linux-i586.bin (Direct download from Sun/Oracle)
Flex SDK 4.1.0 > flex_sdk_188.8.131.5276.zip (Direct download from Adobe)
AIR SDK 2.5.0 > AdobeAIRDSDK.tbz2 (Direct download from Adobe)
Let me know if you have any questions. I'm happy to help.
Thanks for the follow-up. I downloaded the latest Flex/Air SDKs from your links...wiped out the SDK I was using, rebuilt, and it succeeded!
My JDK is also the sun version managed via Ubuntu.
davis@kafka:~$ sudo update-java-alternatives -l
ia32-java-6-sun 63 /usr/lib/jvm/ia32-java-6-sun
java-6-openjdk 1061 /usr/lib/jvm/java-6-openjdk
java-6-sun 63 /usr/lib/jvm/java-6-sun
davis@kafka:~$ java -version
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)
I did not try to manually install the JDK and use that, so I suppose it had something to do with the SDK. I believe the latest SDK you linked to was a minor rev or two beyond what I was using.
Anway, I tried launching the .deb installer package, and it fails with the message: Error: Dependency is not satisfiable: adobeair (>= 184.108.40.206)
I was under the impression that the installer will actually install the Air runtime if it is not present. Is this not correct. I seem to recall it working that way for the Mac/Win installers, but I could be wrong. Is there some way to make this more user-friendly (i.e. make it fetch and install the latest Air runtime)?
Awesome! Glad it worked for you, too.
As for the AIR installation, I dug up this little nugget from the AIR documentation:
When the user double-clicks the native installer file, it installs the AIR application. If the required version of Adobe AIR is not already installed on the machine, the installer downloads it from the network and installs it first. If there is no network connection from which to obtain the correct version of Adobe AIR (if necessary), installation fails. Also, the installation fails if the operating system is not supported in Adobe AIR 2.
It might also be against the EULA to package the AIR installer yourself with your application unless you apply for a redistribution license:
Hope this helps. Best of luck with the rest of your app!
As explained in my post http://forums.adobe.com/thread/856082?tstart=0, I found the solution.
Basically the full Flex SDK contains only the binaries for Windows and Mac platforms.
Installing only the Adobe Air SDK for Linux http://www.adobe.com/products/air/sdk/ solve the issue (it contains the right version of the adt tool for the linux platform).
So the packaging process is as the following :
- package your app as an .air file on your dev box (Windows or Mac)
- then package into a native installer on the destination platform with the right Adobe Air SDK : adt -package -target native yourapp.deb yourapp.air
Hope it helps,
Awesome -- thanks for posting the real root cause. I solved it also myself by doing the same steps: installing Flex SDK, and then unzipping the Air SDK on top of it, but I never knew why this fixed the problem -- it was never required for Mac/Win builds, so I did not expect this.
This will help a lot of people.