20
votes
Do all GPIO pins have a internal pull-up/pull-down resistors?
Yes, all of the B+'s GPIO pins have internal pull-up or pull-down resistors that can be controlled from your code.
Pull-up is 50K min – 65K max.
Pull-down is 50K min – 60K max.
More info on the GPIO ...
11
votes
Raspbian Stretch: Getting Error: missing `server' JVM at `/usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/server/libjvm.so'
I actually fixed this error going step by step, apt seems to have a bug in the way it handles ca-certificates-java and openjdk-8-jre-headless on raspbian.
So I did :
sudo apt-get remove openjdk-8-...
10
votes
Accepted
Running the PC version of Minecraft on a Pi
This was not possible at the time of the original question, but the full Java-based Minecraft can run on a Raspberry Pi 2 or higher today. With improvements to OpenGL on Raspbian over the years, LWJGL ...
10
votes
Accepted
How do I update Java 8 in Raspbian
To have all the time the most recent Oracle java installed, you can do
check current Java
pi@raspberrypi:~ $ java -version java version "1.8.0_65" Java(TM) SE
Runtime Environment (build 1.8.0_65-...
8
votes
Accepted
Installing OpenJDK 16 on Raspberry Pi 4
I wrestled with the same issue a few days ago.
I have been running a Minecraft server on a Raspberry Pi 4, using Java 8, installed via sudo apt install openjdk-8-jdk.
However, as of snapshot 21w19a, ...
7
votes
Pi 4 performance against x86 - CI/CD server with Java/Maven
After a few weeks I was finally able to perform a few benchmarks. The results are shown below:
Computer Arch CPU RAM Drive Java Build Time
------------- ------ -------- ----...
6
votes
Can the Raspberry Pi Zero run Java 8? And on which OS image?
I've been using Java 8 tools on a Raspberry Pi 2, so I see no reason why it should not work on a Zero. It won't be as snappy as on a x86_64 or even an ARM with better CPU/more RAM but it will work. I'...
6
votes
Accepted
JAVA_HOME not working
Your JAVA_HOME points to a different directory than where your java executable is located. Per your question, the JAVA_HOME directory is:
/usr/lib/jvm/jdk-8-oracle-arm-vfp-hflt
whereas java is ...
5
votes
Accepted
Java 11 not working
Linux applications are not portable across all distributions of the same architecture and ABI. This is mainly because different distributions use different versions of libc, but there may be other, ...
5
votes
Accepted
How to install Oracle JDK 14 on my Rasberry Pi 4B?
Is it even possible to install orcale jdk 14 on raspbian?
The versions on the oracle site currently all appear to be x86-64 (for version 14). Oracle java is not open source, so no one else could ...
4
votes
Accepted
Trying to understand where to start with Rasbperry PI, Java and Jazelle
Jazelle is an old, secret acceleration technology for Java Virtual Machines included in some ARM processors (e.g. the ones used by the Raspberry Pi 1 and Zero). To use Jazelle technology, you need an ...
4
votes
Unable to run JAVA on Raspberry PI Zero? "VM is only supported on ARMv7+ VFP"
If you have installed java 8 and still can't seem to get the VM to run then try:
sudo update-alternatives --config java
Select java 8's menu number
...
3
votes
How to execute Java command which would shutdown Raspbian Operating System?
There looks to be a complete Java example using pi4j here:
import java.io.IOException;
import com.pi4j.io.gpio.GpioController;
import com.pi4j.io.gpio.GpioFactory;
import com.pi4j.io.gpio....
3
votes
Accepted
Connecting relays to a Raspberry Pi via radio
Use readymade remote-controlled sockets. They should be tested AND work already.
The hard part is replacing the supplied remote with a cheap 433 Mhz transciever , which might need reverse-...
3
votes
Can the Raspberry Pi Zero run Java 8? And on which OS image?
Yes, you can run Java 8 on a Raspberry Pi Zero.
I have a Raspberry Pi B and B+ and Oracle Java 8 is running fine on both and is pre-installed on Raspian OS. Raspberry Pi B and B+ using the same ARMv6 ...
3
votes
RejectedExecutionException in pi4j
Per the comments below the question, I can't really take the credit for this. jason.keisersmith had received a reply to a bug report posted to the Pi4J Github page here by user savageautomate on 18/03/...
3
votes
Does Windows 10 IoT support Java on the Raspberry Pi 2?
Two years passed and Azul systems (as I understand not without the help from Microsoft) developed Java for Win 10 Iot
http://www.azul.com/downloads/zulu-embedded/
Not much is known about the ...
3
votes
Java is crashing my Pi
Have you deleted any JDK files recently? This question suggests you may be missing some files from your java installation. Just in case you could try reinstalling java.
3
votes
Accepted
Java and DS18B20
Pi4J has released a 1-Wire API in version 1.1. It's no longer a SNAPSHOT version.
W1Master master = new W1Master();
List<W1Device> w1Devices = master.getDevices(TmpDS18B20DeviceType.FAMILY_CODE)...
3
votes
Java headless or headful?
Java should only throw that exception if you deal with gui components (like Swing). check all your imports for javax.swing and make sure you don't reference any.
also, don't use javaw to run it, use ...
3
votes
How do I update Java 8 in Raspbian
The following advice by hannes ach and SWilk was successful, but I got the following error:
pi@raspberrypi:~ $ sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C2518248EEA14886
...
3
votes
Accepted
Java program on Pi board
You do not need to run NetBeans to program Java on the Raspberry Pi. You do not even need an IDE, though that can be helpful.
To run a java program all you need is a Java runtime. The official name ...
3
votes
How do I make a Java application I made run as a deamon?
Services are managed by systemd. Just start with a simple Unit file:
rpi ~$ sudo systemctl --full --force edit myjar.service
In the empty editor insert these statements, save them and quit the ...
3
votes
Unable to run JAVA on Raspberry PI Zero? "VM is only supported on ARMv7+ VFP"
It looks like Oracle has not released an up-to-date Java build that supports the BCM2835 (the CPU in the Pi Zero W). (See Cannot execute or open .jar files, Raspberry Pi 0 W and armv6.)
It looks like ...
3
votes
Unable to run JAVA on Raspberry PI Zero? "VM is only supported on ARMv7+ VFP"
I just installed Buster on my old Pi1 B+ and ran into the same problem.
after
sudo apt-get install default-jdk
the JavaVM didn't run.
I removed it and installed
sudo apt-get install java-8-jdk
...
3
votes
Controlling Raspberry PI zero device over the internet
Set up a simple REST-API with PHP for example that triggers local controlling code.
You may want to add some form of authentication tho like supplying a password in the request.
A request would be ...
3
votes
Getting a NRF24L01 module running with Java
Answer
(1) After googling a bit, I have decided to start with Rpi BlueJ Java IDE, and the first Java programs will be on:
(a) GPIO LED/Button programming,
(b) SPI programming.
(2) Next step is to ...
3
votes
Pi 4 performance against x86 - CI/CD server with Java/Maven
Jenkins and Maven by themselves don't consume any significant CPU time. You need to profile specific implementations of the compilers you're going to use. If you're interested in GCC and don't have a ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
java × 256raspbian × 44
gpio × 31
pi4j × 29
pi-4 × 15
python × 14
javafx × 11
audio × 10
pi-3 × 9
led × 9
pi-2 × 8
boot × 8
minecraft × 8
software-installation × 7
opencv × 7
serial × 6
android × 6
gui × 6
software-development × 6
usb × 5
server × 5
webcam × 5
64-bit × 5
camera × 4
linux × 4