Loading...
Logo
Processing Forum
I just got a chromebook and would love to write processing apps, and since the chromebook runs android OS, I figured there must be a way. Any pointers would be much appreciated!
Thanks, Greg

Replies(4)

Chromebook does not run Android.
The Chomebook runs ChromeOS which is essentially making the browser into the OS and requiring that all apps are web apps. So most anything that runs in processing.js on a browser in a normal OS will run on a Chromebook. 

Personally, I don't have one, so I haven't tried. But that is the theory.


I got Processing on my Samsung Chromebook working by installing Ubuntu on it and running Processing with openJDK. It's somewhat slow, as expected, but usable. And it even runs openGL without any extra work. Since there isn't another mention of it on the forums, this is how I got it working: 


2. Install openJDK via terminal: 
    sudo apt-get update
    sudo apt-get install openjdk-7-jdk

3. Download and extract Processing 32-bit for Linux

4. cd to your Processing install folder

5. Remove the java directory and create a symlink from it to your openjdk install. I used this command via terminal after step #4 above: 
ln -s /usr/lib/jvm/java-6-openjdk/ java

I used instructions from raspberry pi tutorials to make this work: http://elinux.org/RPi_Java and https://forum.processing.org/topic/processing-on-raspberry-pi#25080000001675349
After a little more testing, I found that openJDK runs super slow when doing certain tasks, like drawing ellipses. So I figured out how to install Oracle's Java JDK for ARM, which works much better: 

1. Download the " Linux ARM v6/v7 VFP Hard Float ABI" from this page:  http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

2. Move the downloaded file to the /usr/lib/jvm directory. The terminal command, if you are in your downloads folder is: 
sudo mv jdk-7u40-linux-arm-vfp-hflt.tar.gz /usr/lib/jvm

3. Move to that directory: 
cd usr/lib/jvm

4. Untar the package: 
sudo tar zxvf jdk-7u40-linux-arm-vfp-hflt.tar.gz

5. Go back to your processing folder, delete the symlink to openjdk and make a new one: 
ln -s /usr/lib/jvm/jdk1.7.0_40 java