Gün: 19 Temmuz 2016

  • banana pi java install

    wget –no-check-certificate –no-cookies – –header “Cookie: oraclelicense=accept-securebackup-cookie” http://download.oracle.com/otn-pub/java/jdk/8-b132/jdk-8-linux-arm-vfp-hflt.tar.gz

    Log-in Raspberry Pi, enter the command to extract jdk-8-linux-arm-vfp-hflt.tar.gz to /opt directory.
    $ sudo tar zxvf jdk-8-linux-arm-vfp-hflt.tar.gz -C /opt

    Set default java and javac to the new installed jdk8.
    $ sudo update-alternatives –install /usr/bin/javac javac /opt/jdk1.8.0/bin/javac 1
    $ sudo update-alternatives –install /usr/bin/java java /opt/jdk1.8.0/bin/java 1

    $ sudo update-alternatives –config javac
    $ sudo update-alternatives –config java

    After all, verify with the commands with -verion option.
    $ java -version
    $ javac -version