Posts
Sunday, 17 July 2016
How to install PROCESSING in ubuntu
Processing is an open source computer programming language and integrated development environment (IDE) built for the electronic arts, new media art, and visual design communities with the purpose of teaching the fundamentals of computer programming in a visual context, and to serve as the foundation for electronic sketchbooks.
If you are an electronics enthusiastic and deal with arduino this is for you.
I assume you have basic knowledge of linux, if not you can always head over to tutorialspoint. Make sure you know how to use sudo.
First, download Processing. On Ubuntu 12.04, the 64-bit architecture is appropriate. It downloads as a .tgz archive, typically into the Downloads folder in your Home folder. You can extract the archive by double-clicking in Ubuntu’s file system browser or extract it from the command line in a Terminal with
If Processing just ran out of the box, you could double-click and run the
Next, in your Processing directory, rename the
Now create a symbolic link (symlink) to Oracle 7 Java’s java binary:
At this point, you should be able to run Processing from the Terminal with ./processing. It works for me. YMMV, but I suspect that it should work in most cases.
source
If you are an electronics enthusiastic and deal with arduino this is for you.
I assume you have basic knowledge of linux, if not you can always head over to tutorialspoint. Make sure you know how to use sudo.
First, download Processing. On Ubuntu 12.04, the 64-bit architecture is appropriate. It downloads as a .tgz archive, typically into the Downloads folder in your Home folder. You can extract the archive by double-clicking in Ubuntu’s file system browser or extract it from the command line in a Terminal with
tar -xf processing-2.2.1-linux64.tgz. Once you have extracted the folder processing-2.2.1,
you’ll need to decide where to locate it. I created a new directory,
Developer, in my Home Folder, and moved Processing to it just by
dragging and dropping. You could also install Processing in the /opt/ folder, though this requires an admin account and use of the Terminal.If Processing just ran out of the box, you could double-click and run the
processing script in the processing-2.2.1 folder or point a Terminal to the folder and type ./processing
and hit return (the latter is the approach I recommend). That is
unlikely to work because of incompatibilities with the downloaded
version of Java in Processing and the default Java environment on
Ubuntu. You can resolve the incompatibilities in two steps: installing a
new version of Java and adjusting Processing’s directory structure.
After reading the supported platforms page in the Processing Wiki, I decided that it made the most sense to install Oracle Java 7.Installing Oracle Java 7
Information on issues with Java can be found in Ubuntu Help. Take a moment to read the section on Oracle Java 7. Because of licensing issues, Java has to be downloaded and installed from Oracle. Fortunately, there is a tool to simplify this process at webupd8.org. The documentation is clear and simple, and I leave you to it. Once you’ve installed Java, run the Java environment variables installer, too. FWIW, here is my command history for this process: java -versionsudo add-apt-repository ppa:webupd8team/javasudo apt-get updatesudo apt-get install oracle-java7-installer
java -version
sudo apt-get install oracle-java7-set-default
update-alternatives --display java
Adjustments to Processing
Once you have Oracle Java 7 installed and set as the default version of Java in Ubuntu, you’ll still need to modify Processing to use the newly installed version instead of its own. First, copy Processing’s fonts to the newly installed version of Java. You’ll have to change the command lines to reflect the directory structure for your particular installation of Processing. Oracle Java 7 directories should be the same.cd /usr/lib/jvm/java-7-oracle/jre
sudo cp -R '/home/ignotus_mago/Developer/processing-2.2.1/java/lib/fonts' libNext, in your Processing directory, rename the
java folder.cd '/home/ignotus_mago/Developer/processing-2.2.1'
mv java java_oldNow create a symbolic link (symlink) to Oracle 7 Java’s java binary:
ln -s /usr/lib/jvm/java-7-oracle/jre javaAt this point, you should be able to run Processing from the Terminal with ./processing. It works for me. YMMV, but I suspect that it should work in most cases.
source
Tags: arduino, processing, ubuntu, data visualization
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment