MinimServer Forum

Full Version: java problem on armbian
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I'm trying to install minimserver on armbian system.
java version is :
openjdk version "11.0.12" 2021-07-20
OpenJDK Runtime Environment (build 11.0.12+7-post-Debian-2deb10u1)
OpenJDK 64-Bit Server VM (build 11.0.12+7-post-Debian-2deb10u1, mixed mode)

at start with "minimserver/bin/startc" i have this error message :

java.lang.UnsatisfiedLinkError: /home/eventia/minimserver/tmp/native/libohNet.so : /home/eventia/minimserver/tmp/native/libohNet.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2 442)
at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader .java:2498)
at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2640)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:830)
at java.base/java.lang.System.loadLibrary(System.java:1873)
at org.jminim.lib.OhNetService.createLibrary(OhNetService.java:680)
at org.jminim.lib.OhNetService.createDeviceStack(OhNetService.java:583)
at org.jminim.lib.OhNetService.createDeviceFactory(OhNetService.java:486 )
at org.jminim.lib.OhNetService.access$2100(OhNetService.java:52)
at org.jminim.lib.OhNetService$Proxy.createDeviceFactory(OhNetService.ja va:1128)
at org.jminim.lib.MonitorService$Monitor.createDevice(MonitorService.jav a:289)
at org.jminim.lib.MonitorService$Monitor.listenerAdded(MonitorService.ja va:366)
at org.jminim.core.RuntimeImpl.addEventListener(RuntimeImpl.java:2501)
at org.jminim.lib.RuntimeService$Proxy.addEventListener(RuntimeService.j ava:232)
at com.minimserver.Server.doStart(Server.java:1809)
at com.minimserver.Server.start(Server.java:1346)
at org.jminim.core.ContextImpl.startComponent(ContextImpl.java:230)
at org.jminim.core.ContextImpl.start(ContextImpl.java:118)
at org.jminim.core.RootContextImpl.startComponent(RootContextImpl.java:8 0)
at org.jminim.core.ContextImpl.start(ContextImpl.java:118)
at org.jminim.core.RuntimeImpl.run(RuntimeImpl.java:2734)
at org.jminim.core.LauncherImpl.run(LauncherImpl.java:1302)
at org.jminim.core.LauncherImpl.launch(LauncherImpl.java:124)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.jminim.mlaunch.MinimLaunch.doLaunch(MinimLaunch.java:525)
at org.jminim.mlaunch.MinimLaunch.launch(MinimLaunch.java:150)
at org.jminim.mlaunch.MinimLaunch.launch(MinimLaunch.java:90)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.jminim.launch.Launcher.launch(Launcher.java:88)
at com.minimserver.launch.LaunchServer.main(LaunchServer.java:38)
MinimServer error: now stopped, use 'restart' or 'exit'

if i type restart , minimserver starts normaly and is usable. I can acces trought web remote . autostart don't work and minimserver/bin/startd either.

google search point me to install java 32bit i tried but it still doesn't work.
What is the hardware architecture for your device and operating system: armv5/armv6/armv7/armv8, soft float/hard float, 32/64 bit?
(09-11-2021 14:15)simoncn Wrote: [ -> ]What is the hardware architecture for your device and operating system: armv5/armv6/armv7/armv8, soft float/hard float, 32/64 bit?

Harware is a TV box based on amlogic s905x chip so ARMv8 (a53 cores) , should be hard float , 64bit
operating system is armbian
Is the operating system also 64-bit? For example, Raspbian for the RPi4 is 32-bit even though the hardware is 64-bit.
(09-11-2021 15:15)simoncn Wrote: [ -> ]Is the operating system also 64-bit? For example, Raspbian for the RPi4 is 32-bit even though the hardware is 64-bit.

i think so

lscpu
Architecture: aarch64
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
NUMA node(s): 1
Vendor ID: ARM
Model: 4
Model name: Cortex-A53
Stepping: r0p4
CPU max MHz: 1512.0000
CPU min MHz: 100.0000
BogoMIPS: 48.00
L1d cache: unknown size
L1i cache: unknown size
L2 cache: unknown size
NUMA node0 CPU(s): 0-3
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
If the OS is 64-bit, you should be using 64-bit Java. From the error information you posted, it looks like this is what you are using.

When you start MinimServer, the log should contain a message "System platform is ...." What does this say?
(09-11-2021 23:16)simoncn Wrote: [ -> ]If the OS is 64-bit, you should be using 64-bit Java. From the error information you posted, it looks like this is what you are using.

When you start MinimServer, the log should contain a message "System platform is ...." What does this say?

just looked into log
System platform is linux-armhf
This is 32-bit ARMv7. You need 32-bit Java and the MinimServer download for ARM hard float.
(10-11-2021 07:55)simoncn Wrote: [ -> ]This is 32-bit ARMv7. You need 32-bit Java and the MinimServer download for ARM hard float.

no system is arm64
(Post edited to remove incorrect information)

I checked what is shown as "System platform." This corresponds to the version of MinimServer that is installed, not the version of Java. If your system is arm64 and you are using 64-bit Java, you need the ARM 64-bit version of MinimServer.
Pages: 1 2
Reference URL's