Skip to main content
Share Your Experience: Take the 2024 Developer Survey
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-...
Johnride's user avatar
  • 211
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 ...
jdonald's user avatar
  • 2,914
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-...
hannes ach's user avatar
8 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 ------------- ------ -------- ----...
The Impaler's user avatar
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, ...
Ashley's user avatar
  • 196
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 ...
Phil B.'s user avatar
  • 5,043
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, ...
Dmitry Grigoryev's user avatar
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 ...
goldilocks's user avatar
  • 59.1k
5 votes
Accepted

Up-to-date java version for setting up a minecraft server on raspberry pi 4

a more recent version of the Java Runtime (class file version 65.0) That's java 22 which is not available in current RaspiOS. If this is the major purpose for the Pi, you could install an OS that ...
goldilocks's user avatar
  • 59.1k
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 ...
flakeshake's user avatar
  • 6,213
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 ...
Julian Taylor's user avatar
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 ...
Dmitriy Pichugin's user avatar
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/...
goobering's user avatar
  • 10.7k
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 ...
Simulant's user avatar
  • 653
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)...
Simulant's user avatar
  • 653
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 ...
Ivan's user avatar
  • 31
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 ...
NomadMaker's user avatar
  • 1,560
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 ...
Ingo's user avatar
  • 42.2k
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 ...
Fred's user avatar
  • 4,552
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 ...
Steffen Roller's user avatar
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 ...
mystery's user avatar
  • 518
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 ...
tlfong01's user avatar
  • 4,695
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 ...
Dmitry Grigoryev's user avatar
3 votes

What Java library to use for GPIO with raspberry pi 4b

I can confirm that diozero (documentation now at https://www.diozero.com/) works with all flavours of Raspberry Pi, from the armv6 based Pi Zero through to the latest Pi4 / Compute Module 4, as well ...
Matthew Lewis's user avatar
3 votes
Accepted

How to correctly identify the pin addresses in the Pi4J 2.2.1 GPIO API?

There are 3 pin numbering conventions in use on the Pi; BCM, Physical (or Board) and WiringPi. BCM is the native numbering (and is the only convention understood by the SoC). Board numbers correspond ...
Milliways's user avatar
  • 60.3k
2 votes

Get core temp in Java

Open the file /sys/class/thermal/thermal_zone0/temp. Read the single line as an integer. Close the file. Divide the read value by 1000 to get degrees centigrade. E.g. a read value of 37932 is 37....
joan's user avatar
  • 71.1k
2 votes

Cannot open .jar files?

When you type java -version at your command prompt what response do you get? If you get a response indicating the JVM and version number, you will know Java has been installed correctly. If you ...
mike's user avatar
  • 111
2 votes
Accepted

Latest Firefox/Chrome possibilities

Okay after 2 days I got it working. My working snapshot is as follows: Raspberry Pi 3B Rasbian version April 2017 (Jessie) Selenium 3.4 for Java (Download) Firefox ESR 45 Geckodriver v0.15.0 for ...
Zabuzard's user avatar
  • 141

Only top scored, non community-wiki answers of a minimum length are eligible