JavaScool:ProcessingLinux : Différence entre versions

De Sciencinfolycee
Aller à : navigation, rechercher
m (How to nicely install processing with linux)
m (How to nicely install processing with linux)
Ligne 8 : Ligne 8 :
 
### Copy processing in a standard location, e.g. ''/usr/java''  
 
### Copy processing in a standard location, e.g. ''/usr/java''  
 
#### ''tar xvzf processing-1.4.2.1.tgz ; mv processing-1.2.1 /usr/java ; /bin/rm processing-1.4.2.1.tgz''
 
#### ''tar xvzf processing-1.4.2.1.tgz ; mv processing-1.2.1 /usr/java ; /bin/rm processing-1.4.2.1.tgz''
 +
### Adapt the preferences to Linux (assuimg here you use firefox and gnome)
 +
#### sed -i 's/brower.linux *= .*/browser.linux = firefox/'          /usr/java/processing-1.2.1/lib/preferences.txt
 +
#### sed -i 's/[#]?launcher.linux *= .*/launcher.linux = gnome-open/' /usr/java/processing-1.2.1/lib/preferences.txt
 
## Link the JDK6 to processing
 
## Link the JDK6 to processing
 
### ''/bin/rm -rf /usr/java/processing-1.2.1/java ; ln -s /usr/java/jdk1.6.0_21 /usr/java/processing-1.2.1/java''
 
### ''/bin/rm -rf /usr/java/processing-1.2.1/java ; ln -s /usr/java/jdk1.6.0_21 /usr/java/processing-1.2.1/java''

Version du 3 octobre 2010 à 18:43

How to nicely install processing with linux

  1. As root you have to
    1.  Install the Sun JDK6 in a standard location, e.g. /usr/java
      1. Gets, e.g. jdk-6u21-linux-i586.bin, from http://www.oracle.com/technetwork/java/javase/downloads/index.html in /tmp
      2. Runs cd /usr/java ; /tmp/jdk-6u21-linux-i586.bin and follow instructions
    2. Install the processing files
      1. Gets, e.g. processing-1.4.2.1.tgz from http://processing.org/download
      2. Copy processing in a standard location, e.g. /usr/java
        1. tar xvzf processing-1.4.2.1.tgz ; mv processing-1.2.1 /usr/java ; /bin/rm processing-1.4.2.1.tgz
      3. Adapt the preferences to Linux (assuimg here you use firefox and gnome)
        1. sed -i 's/brower.linux *= .*/browser.linux = firefox/' /usr/java/processing-1.2.1/lib/preferences.txt
        2. sed -i 's/[#]?launcher.linux *= .*/launcher.linux = gnome-open/' /usr/java/processing-1.2.1/lib/preferences.txt
    3. Link the JDK6 to processing
      1. /bin/rm -rf /usr/java/processing-1.2.1/java ; ln -s /usr/java/jdk1.6.0_21 /usr/java/processing-1.2.1/java
    4. Install the proper sound librairies from the openjdk to the sunjdk (use locate libpulse-java.so to find the libraries in your system)
      1. cp /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/libpulse-java.so /usr/java/jdk1.6.0_21/jre/lib/i386/
      2. cp /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/ext/pulse-java.jar /usr/java/jdk1.6.0_21/