I created a new environment variable called JAVA_TOOL_OPTIONS
of -Xmx256M. And then the .fla file seemed to work . Apparently
there is too much code in my .fla file with as many as 20 videos
(.flv) and lot of radio-buttons ( I mean A lot of them !!! )...
Now with the .fla file working, when I am trying to create an
AIR installer it is throwing the error, " Error creating AIR file.
Picked up JAVA_TOOL_OPTIONS: -Xmx256M ” .
so I am not able to create the AIR Installer. and If I change
back the -Xmx 256M then my .fla file won't work. So what do I do
now ? I somehow removed the above -Xmx 256M variable and created a
AIR installer with a self-signed certificate and when I try to
install that AIR installer, I get another error message, "The
application could not be installed. Try installing it again. If the
problem persists, contact the application author.
So I have 2 questions:
1. how do I create this AIR installer and make it work as a
.exe file and run it without having Adobe flash CS3 installed on
another computer and please help me in my case as above.
2. Also, would I need to buy a digital certificate to create
the AIR installer or can I use a self-signed certificate to create
an AIR installer and use it to install the AIR application on a few
computers ? Please help
Assuming that you are generating a valid SWF file in the
first step, you could try packaging the application into an AIR
file using the command line tools. This would let you set your Java
Answers to your 2 Qs:
1. Create an AIR package. Install the AIR runtime (if
necessary). Install the app. If this doesn't work, try to create
and install a simple "hello world" type app to verify that the
tools are working properly. How large is the AIR package? On some
machines, problems can occur when the package exceeds 100MB
(depending on memory, etc).
2. No, you don't need a commercial certificate. Such a
certificate is recommended if you will be distributing an AIR app
to strangers. It lets them verify that the app was, indeed, signed
by you. Self-signed certificates are easily forged.