Wednesday, September 29, 2010

FlashBuilder 4 JVM Terminated Exit Code = -1

Everything was fine until now. After a system restart, I had this stupid error popping up when ever I try to start Flash Builder. I had modified the FlashBuilder.ini file and it worked fine for weeks.
If you get such an error, first thing you need to keep in mind is its Java. So you are expected to see such things. Next, go to the FlashBuilder install directory and open up your FlashBuilder.ini file.
Check whether the -XX:MaxPermSize is same as the -Xms and is less than -Xmx.
Here is mine.
-nl
en_US
-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-vmargs
-Xms512m
-Xmx768m
-XX:MaxPermSize=512m
-XX:PermSize=128m
-Djava.net.preferIPv4Stack=true
If this still don't work, then first make a backup of FlashBuilderC.ini. Then you can run FlashBuilderC.exe and see whether it starts. If it starts then compare the values in it to that of FlashBuilder.ini and make the modifications to FlashBuilder.ini.

Friday, September 3, 2010

Download videos from Adobe TV (tv.adobe.com)

In order to download videos from tv.adobe.com the traditional way is to use the Adobe Media Player and sign in. Add the video to your library or rss etc and it downloads for offline viewing.
But to see your library you need to login. But there is some bug in Adobe Media Player so I get "We are sorry.." message soon after signing in. So basically it doesn't work for me. We could download the video by following the below steps.
1. You need URLSnooper.
2. Install it. Make sure that you install winpcap which comes along with it.
3. Open URLSnooper and in the menu click advanced. Then select your network adapter.. etc
4. Click sniff network. In the protocol filter let it be Multimedia URLs.
5. Then open your browser and go to the http://tv.adobe.com/.. video page (and let the video start to play).
6. Now you will see some links appear in the sniffer (URLSnooper).
7. They are actually http links.
8. Also note that the videos are mostly hosted on edgeboss.net servers.
9. Now you will see some links like (ignore the {} brackets) http://adobe.edgeboss.net/download/adobe/adobetv2/360_flex_conference/{some_string_video_name}.flv?rss_feedid={a_number}&xmlvers=2
10. There it is!! So the url is http://adobe.edgeboss.net/download/adobe/adobetv2/360_flex_conference/{some_string_video_name}.flv
11. Copy and paste it in your browser. Download it. Watch them offline!!