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
  Debian on Pinebook Pro u974615 7 1,042 03-31-2024, 10:11 AM
Last Post: u974615
  Pinebook Pro upgrading from the factory image yamsoup 12 1,616 02-22-2024, 04:02 PM
Last Post: tllim
  Help installing Manjaro on eMMC of Pinebook Pro pine4546464 4 2,157 12-13-2023, 07:22 PM
Last Post: trillobite
  Need Help Recovering Manjaro /boot Contents on Pinebook Pro calinb 6 2,232 12-11-2023, 03:47 AM
Last Post: calinb
  Gentoo on Pinebook Pro RELEASE jannik2099 54 89,028 12-08-2023, 11:25 PM
Last Post: tllim
  Boot Order in Pinebook Pro food 8 1,249 11-23-2023, 07:37 AM
Last Post: KC9UDX
  PineBook Pro seems to go to deep sleep, but doesn't wake up pogo 11 5,285 08-31-2023, 04:20 PM
Last Post: TRS-80
  Would a Pinebook Pro be good for a Linux newbie? cassado10 6 1,487 08-08-2023, 04:58 AM
Last Post: moobythegoldensock
  Install deepin OS on pinebook pro wangyukunshan 4 1,593 08-07-2023, 01:12 PM
Last Post: myself600
  Kali Linux for Pinebook Pro - stuck on the login screen owaspfap 0 665 07-13-2023, 05:21 PM
Last Post: owaspfap

Forum Jump:


Users browsing this thread: 1 Guest(s)