I am an experienced Java programmer who received the raspberry pi for Christmas. Unfortunately, it appears that only Python is installed in it. What command do I type at the start command line where I would usually type startx to install the JDK and Jre
|
The oracle 8 preview works for me, thus far. Compiling is slow on the pi, surprise, but the jre seems to run quite fast once it loads. I think bearbin's answer is pretty definitive but if you want a simple way to try oracle:
That will only work for your current shell. To make it the default from now on, add this to
|
|||
|
|
|
To install the Java Runtime Environment (JRE) run the following command:
This installs the Java JRE (Java Runtime Environment) which will allow you to run applications written in Java. To install the JDK run the command:
This allows you to compile Java applications to bytecode. 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. Instead of the above instructions you need to download the file called Remember to download the Oracle Java system on your Pi, or you won't be able to install it. To install the Oracle Java System:
Then it is all installed. Another thing, if you have more then one Java runtime installed you have to check which version you use with the commando
Then you are using a other java runtime. You can resolve the issue by running
and choosing the OpenJDK or Oracle option. |
|||||||||
|
|
This is OpenJDK 6. Oracle JDK is not available in armhf flavor, so you have to use a soft-float image to use it. |
|||||||
|