jamvm out of memory

If it's really a memory problem, you can try enabling swap temporarly (you need to have run Yun http://arduino.cc/en/Tutorial/ExpandingYunDiskSpace )

opkg install swap-utils
dd if=/dev/zero of=/swapfile bs=1024 count=65536   # Create a 64MB swap file at /swapfile
mkswap /swapfile
swapon /swapfile

credits