Skip to content
Advertisement

Tag: raspberry-pi

Pi4j to use java with raspberry Pi not working

I am honestly about to just give up, i’ve tried so many different possibilities, for multiple weeks now, almost a month, of multiple problems. I am a new-ish programmer, especially with java, but i have a good understanding about java I am able to create a maven project no problem, i have no problems with the structure of java itself,

Unable to get PATH to be set for all users

Trying to get OpenJDK 17 installed for Pufferpanel. User pi can do java -version fine however Pufferpanel gets bash: java: command not found My /etc/profile and /etc/profile.d/java.sh have these lines: In addition JAVA_HOME=”/usr/lib/jvm/jdk-17.0.1+12″ is set in /etc/environment Full permissions have been given for java.sh and the JAVA_HOME folder with chmod 777. The user pufferpanel now can run the script however

Unable to install JDK 16 on RPi

I want to install the JDK 16 on a RPi 3B and I downloaded the Linux ARM 64 Compressed Archive from the Oracle site. Every time I run the command to check the version of java I get the same error: bash: ./java: cannot execute binary file: Exec format error I already tried to untar it again and download the

Install Java 16 on Raspberry Pi 4

I have tried multiple releases from here using : But after java -version I always get: Which means I have chosen the wrong release/architecture. Is there a release that works with Raspberry Pi’s or is there another way to install Java 16? Answer Answering my own question. cd [minecraft directory here] wget https://github.com/AdoptOpenJDK/openjdk16-binaries/releases/download/jdk16u-2021-05-08-12-45/OpenJDK16U-jdk_arm_linux_hotspot_2021-05-08-12-45.tar.gz tar xzf OpenJDK16U-jdk_arm_linux_hotspot_2021-05-08-12-45.tar.gz export PATH=$PWD/jdk-16.0.1+4/bin:$PATH java -version

Sqlite4java on Raspberry Pi

I want to use my java project on Raspberry Pi. This code depends on sqlite4java which uses native implementations for many platforms including arm processors link. The problem is that java can’t load required sqlite wrapper for arm processor. I was doing the follows: Copied all version (tried one by one) of precompiled libraries (libsqlite4java-linux-armv5te.so, libsqlite4java-linux-armv7a.so, libsqlite4java-linux-arm.so) which I renamed

Advertisement