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
  Upgrading Armbian from v24.2.1 gnome, breaks pinebook pro Sb2024 0 191 11-10-2024, 02:50 PM
Last Post: Sb2024
  Pinebook pro won't boot after bootloader installation jwensouls 4 1,140 08-21-2024, 04:17 AM
Last Post: KC9UDX
  [Pinebook Pro/Mobian/XFCE4] can fix touch or screen in greeter not both SynthGal 0 451 05-31-2024, 09:42 AM
Last Post: SynthGal
  Debian on Pinebook Pro u974615 7 3,112 03-31-2024, 10:11 AM
Last Post: u974615
  Pinebook Pro upgrading from the factory image yamsoup 12 4,583 02-22-2024, 04:02 PM
Last Post: tllim
  Help installing Manjaro on eMMC of Pinebook Pro pine4546464 4 3,382 12-13-2023, 07:22 PM
Last Post: trillobite
  Need Help Recovering Manjaro /boot Contents on Pinebook Pro calinb 6 3,679 12-11-2023, 03:47 AM
Last Post: calinb
  Gentoo on Pinebook Pro RELEASE jannik2099 54 105,828 12-08-2023, 11:25 PM
Last Post: tllim
  Boot Order in Pinebook Pro food 8 2,994 11-23-2023, 07:37 AM
Last Post: KC9UDX
  PineBook Pro seems to go to deep sleep, but doesn't wake up pogo 11 7,736 08-31-2023, 04:20 PM
Last Post: TRS-80

Forum Jump:


Users browsing this thread: 2 Guest(s)