SDRTrunk sdr-trunk java not found

Status
Not open for further replies.

longbch

Mostly Scanner Listener, AM and SWL
Joined
Dec 19, 2002
Messages
36
Location
Holly Springs, NC
Hello,

I'm trying sdr-trunk to see if I like it better than op25, but after untarring the file on my Raspberry Pi 4 (aarch64) I'm seeing this error with the aarch65-v0.5.2 and v0.6.0-beta1.zip libraries:

~ $ ~/sdr-trunk-linux-aarch64-v0.6.0-beta1/bin/sdr-trunk
/home/user/sdr-trunk-linux-aarch64-v0.6.0-beta1/bin/sdr-trunk: 156: exec: /home/user/sdr-trunk-linux-aarch64-v0.6.0-beta1/bin/java: not found

I tried shorting the folder name to just sdr-trunk, but that didn't help. I can see the java library in the bin library.

Any help is appreciated.

Thanks
 

Reconrider

Inside the Galaxy
Joined
Sep 26, 2017
Messages
1,970
Location
Radio Galaxy
Have you read this page?
 

belvdr

No longer interested in living
Joined
Aug 2, 2013
Messages
2,567
Hello,

I'm trying sdr-trunk to see if I like it better than op25, but after untarring the file on my Raspberry Pi 4 (aarch64) I'm seeing this error with the aarch65-v0.5.2 and v0.6.0-beta1.zip libraries:

~ $ ~/sdr-trunk-linux-aarch64-v0.6.0-beta1/bin/sdr-trunk
/home/user/sdr-trunk-linux-aarch64-v0.6.0-beta1/bin/sdr-trunk: 156: exec: /home/user/sdr-trunk-linux-aarch64-v0.6.0-beta1/bin/java: not found

I tried shorting the folder name to just sdr-trunk, but that didn't help. I can see the java library in the bin library.

Any help is appreciated.

Thanks
Send the output of:
Code:
ls -l /home/user/sdr-trunk-linux-aarch64-v0.6.0-beta1/bin/java
 

longbch

Mostly Scanner Listener, AM and SWL
Joined
Dec 19, 2002
Messages
36
Location
Holly Springs, NC
@belvdr, that was a good thought! I didn't think of permissions, but it looks like all are setup for execution and read, and the user is setup for all permissions. Here's the output: -rwxr-xr-x 1 user user 13456 Aug 19 05:17 java

I'll look at the sdr-trunk instructions some more and may even get my own instance of Java for Linux and try it.

Thank you for the reply.
 

belvdr

No longer interested in living
Joined
Aug 2, 2013
Messages
2,567
@belvdr, that was a good thought! I didn't think of permissions, but it looks like all are setup for execution and read, and the user is setup for all permissions. Here's the output: -rwxr-xr-x 1 user user 13456 Aug 19 05:17 java

I'll look at the sdr-trunk instructions some more and may even get my own instance of Java for Linux and try it.

Thank you for the reply.
Is there a weird perm on the directory then?
Code:
ls -lad home/user/sdr-trunk-linux-aarch64-v0.6.0-beta1/bin

It looks like the path is correct and everything. I've never had an issue, but I've never done this on ARM.
 

longbch

Mostly Scanner Listener, AM and SWL
Joined
Dec 19, 2002
Messages
36
Location
Holly Springs, NC
The directories are okay. I renamed the long name to "sdr-trunk" so that it is easier to type:
drwxr-xr-x 6 user user 4096 Aug 19 05:17 sdr-trunk
drwxr-xr-x 2 user user 4096 Aug 19 05:17 sdr-trunk/bin

I've installed Java and may just copy the java library to the sdr-trunk/bin library. Trying that now.
 

belvdr

No longer interested in living
Joined
Aug 2, 2013
Messages
2,567
You might also try cd-ing into the directory and running it from there (i.e. ./sdr-trunk).
 

longbch

Mostly Scanner Listener, AM and SWL
Joined
Dec 19, 2002
Messages
36
Location
Holly Springs, NC
Hi @belvdr thank you for the suggestions! I tried cd-ing into the bin directory and did ./sdr-trunk, but got the same error. The shell script is setup to be able to be run from any directory.

I installed Java and was messing around with Java settings in the sdr-trunk script. I set this line to point to my now-installed Java: JAVA_HOME="/usr/lib/jvm/java-11-openjdk-armhf"

Now I get that these errors:

Unrecognized option: --enable-native-access=ALL-UNNAMED
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

I wonder if enable-native-access is only supported in a JRE and not in the full Java.

I'll do some more searching to see if others have hit this and write to the sdr-trunk guys for support. Support

Someone else must have hit this out-of-the-box extraction on a Pi, and saw this. I'm not sure what program my Raspberry Pi is using to unpack the zip file. The "Extract" function is available in the RMC menu in the File Manager. Both unzip and tar are installed on my Pi by default when using the Raspberry Pi Imager program.

I think that many/most of the sdr-trunk users may be on Windows.
 

belvdr

No longer interested in living
Joined
Aug 2, 2013
Messages
2,567
I thought the shell script worked from anywhere. It's an odd error that you're getting with the bundled java. Did you try any other versions besides the two you mentioned?

I think many users are on Windows. I'm on Linux and haven't seen this before.
 

longbch

Mostly Scanner Listener, AM and SWL
Joined
Dec 19, 2002
Messages
36
Location
Holly Springs, NC
@belvdr, I've since discovered that I need to have a 64-bit Linux system installed for SDR Trunk, but the Raspberry Pi Imager made mine 32-bit. I got OP25 working pretty good, but am looking to use something to record my local police overnight. I'm Installing trunk-recorder and then RDIO Scanner now to try that.
 

nexusjuan

Member
Joined
Aug 22, 2022
Messages
27
@belvdr, I've since discovered that I need to have a 64-bit Linux system installed for SDR Trunk, but the Raspberry Pi Imager made mine 32-bit. I got OP25 working pretty good, but am looking to use something to record my local police overnight. I'm Installing trunk-recorder and then RDIO Scanner now to try that.
I'm using SDR-Trunk to RDIO scanner thats a great setup. RDIO scanner has an Android app too you can plug your server info in and listen on the go.
 

belvdr

No longer interested in living
Joined
Aug 2, 2013
Messages
2,567
@belvdr, I've since discovered that I need to have a 64-bit Linux system installed for SDR Trunk, but the Raspberry Pi Imager made mine 32-bit. I got OP25 working pretty good, but am looking to use something to record my local police overnight. I'm Installing trunk-recorder and then RDIO Scanner now to try that.
Oh good find. I'm glad you got it sorted.
 
Status
Not open for further replies.
Top