...
Then open /boot/cmdline.txt
in an editor and add on the same line as the other options dwc_otg.speed=1
. Run sudo sync
and reboot. This drops USB speeds from 480Mbits/s to 12Mbits/s, which is known to resolve issues with a variety of USB devices on the Raspberry Pi.
Running a JDK
...
Raspbian has Java SE 7 preinstalled on the image. This version does not contain JavaFX. To obtain JavaFX download either:
- Java SE 8. (Linux ARM v6/v7 Hard Float ABI).
...
This downloaded bundle should be unpacked on the Pi. For example,
Code Block | ||||
---|---|---|---|---|
| ||||
sudo tar zxvf jdk-8-xxxxxx-linux-arm-vfp-hflt.tar.gz -C /opt |
To check that the JDK is installed correctly, run:
...
This should show that you are running JDK 8. If the VM won't even start, you might be running a hard-float VM on a soft-float system.
To avoid confusion, change your PATH variable so that the newer version is earlier in the path.
You can use the samples bundle from https://jdk8.java.net/download.html on the Raspberry Pi. Not all the samples will work on the Pi; here are some that will:
...