Instead of the above instructions you need to download the file called Oracle JDK 8 (with JavaFX) for ARM Early Access on the Oracle Java 8 download page. If you want the Oracle Java VM, which is a lot faster (optimized for embedded arm CPUs) and is also a developer preview (applications maybe buggy or crash) until some time into the future. This allows you to compile Java applications to bytecode. To install the JDK run the command: sudo apt-get install openjdk-7-jdk This installs the Java JRE (Java Runtime Environment) which will allow you to run applications written in Java. To install the Java Runtime Environment (JRE) run the following command: sudo apt-get install openjdk-7-jre However, if you are using lightdm, the default GUI login won't do this, see here for a solution. To make it the default from now on, add this to ~/.profile: export PATH=/usr/local/jdk1.8.0/bin:$PATH That will only work for your current shell. If there are any other javas installed, that will make this one take precedence: PATH=/usr/local/jdk1.8.0/bin:$PATH. Put the bin/ directory at the beginning of your executable search $PATH.You can rename the directory, mv oracle-jdk-whatever jdk1.8.0. This will create a directory with everything in it. tar.gz in /usr/local and unpack it: tar -xzf. I think bearbin's answer is pretty definitive but if you want a simple way to try oracle: Compiling is slow on the pi, surprise, but the jre seems to run quite fast once it loads. The oracle 8 preview works for me, thus far.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |