Freenet on Pinebook pro
#2
Short version: Edit ~/Freenet/run.sh.
Change jna-4.2.2.jar and jna-platform-4.2.2.jar to jna-4.5.2.jar and jna-platform-4.5.2.jar both times that they appear, and then it seems to run.

Code:
$ sed -i 's/4.2.2/4.5.2/g' run.sh

---
It doesn't support aarch64.

There is an AUR package, https://aur.archlinux.org/packages/freenet/

According to that, java-service-wrapper is a required dependency.

https://aur.archlinux.org/packages/java-...e-wrapper/

Even though the PKGBUILD for java_service_wrapper includes aarch64, it doesn't actually build properly on aarch64 without modification.

Code:
[[ "$CARCH" = @(x86_64|aarch64) ]] && _bits=64    || _bits=32
[[ "$CARCH" = arm*              ]] && _arch=armhf || _arch=x86

^ that part is obviously wrong, and causes it to detect the platform as x86 64-bit. It seems to build if I hardcode _bits=64 ; _arch=armhf, using the 64-bit armhf makefile.

The wrappers are supposed to be in ~/Freenet/bin
It doesn't include a wrapper for aarch64 or armhf 64-bit.
java-service-wrapper installs to a system directory (/usr/share/java) so it doesn't fix that.

The error messages are coming from ~/Freenet/run.sh

If it can't find the wrappers, it falls back to a command line with a hardcoded classpath that includes jna and jna-platform. This code obviously doesn't get tested often because, while both of those are bundled and in the same directory, the hardcoded version number is wrong, so it can't find them.

The error message 'Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/jna/Platform' is the direct result of that.

wrapper.conf uses the proper version numbers; they forgot to update the fallback.
  Reply


Messages In This Thread
Freenet on Pinebook pro - by regivanx - 12-15-2021, 12:39 PM
RE: Freenet on Pinebook pro - by Dendrocalamus64 - 12-15-2021, 05:06 PM
RE: Freenet on Pinebook pro - by regivanx - 12-18-2021, 03:59 PM
RE: Freenet on Pinebook pro - by Dendrocalamus64 - 12-19-2021, 12:24 PM
RE: Freenet on Pinebook pro - by regivanx - 12-19-2021, 01:11 PM
RE: Freenet on Pinebook pro - by Dendrocalamus64 - 12-19-2021, 03:09 PM
RE: Freenet on Pinebook pro - by regivanx - 12-19-2021, 03:46 PM
RE: Freenet on Pinebook pro - by regivanx - 08-11-2022, 06:40 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Boot Order in Pinebook Pro food 12 14,009 05-25-2026, 08:28 AM
Last Post: finmark
  Window Maker Live for Pinebook Pro vajak 9 3,749 05-20-2026, 06:55 AM
Last Post: vajak
  Upgrading Armbian from v24.2.1 gnome, breaks pinebook pro Sb2024 1 13,019 08-09-2025, 06:53 AM
Last Post: Sb2024
  Pinebook pro won't boot after bootloader installation jwensouls 4 6,924 08-21-2024, 04:17 AM
Last Post: KC9UDX
  [Pinebook Pro/Mobian/XFCE4] can fix touch or screen in greeter not both SynthGal 0 3,860 05-31-2024, 09:42 AM
Last Post: SynthGal
  Debian on Pinebook Pro u974615 7 10,484 03-31-2024, 10:11 AM
Last Post: u974615
  Pinebook Pro upgrading from the factory image yamsoup 12 14,467 02-22-2024, 04:02 PM
Last Post: tllim
  Help installing Manjaro on eMMC of Pinebook Pro pine4546464 4 8,847 12-13-2023, 07:22 PM
Last Post: trillobite
  Need Help Recovering Manjaro /boot Contents on Pinebook Pro calinb 6 10,313 12-11-2023, 03:47 AM
Last Post: calinb
  Gentoo on Pinebook Pro RELEASE jannik2099 54 152,055 12-08-2023, 11:25 PM
Last Post: tllim

Forum Jump:


Users browsing this thread: 1 Guest(s)