Raspberry Pi

Here we will discuss any subject related to the Android Pocket Transceiver which is available for free download in Google Play Store
Post Reply
m6oba
Posts: 3
Joined: Tue Jun 21, 2016 11:55 am

Raspberry Pi

Post by m6oba »

I wonder if anyone can help me with trying to use Pocket Rx/Tx with a Raspberry Pi and a Yaesu 897.

I'm using jAReCmini 0.8.1 and Pocket Rx/Tx v0.8.1-1 ( also tried -2 ).

When I start jAReCmini 0.8.1 SSH I get:

Code: Select all

pi@raspberrypi:~/Downloads $ sudo java -jar jarecmini.jar
jAReC mini version 0.8.1

Listening for connections on 192.168.0.78:4443
But when I try to connect with Pocket Rx/Tx I get:

Code: Select all

Cpi@raspberrypi:~/Downloads $ sudo java -jar jarecmini.jar
jAReC mini version 0.8.1

Listening for connections on 192.168.0.78:4443
Connected without authentication
main._appstart (java line: 279)
java.lang.RuntimeException: java.lang.NoClassDefFoundError: javafx/beans/value/ChangeListener
        at anywheresoftware.b4a.BA.raiseEvent2(BA.java:114)
        at anywheresoftware.b4a.BA$3.run(BA.java:178)
        at anywheresoftware.b4a.keywords.SimpleMessageLoop.runMessageLoop(SimpleMessageLoop.java:30)
        at anywheresoftware.b4a.StandardBA.startMessageLoop(StandardBA.java:26)
        at anywheresoftware.b4a.keywords.Common.StartMessageLoop(Common.java:131)
        at b4j.example.main._appstart(main.java:279)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)
        at anywheresoftware.b4a.BA.raiseEvent(BA.java:84)
        at b4j.example.main.main(main.java:29)
Caused by: java.lang.NoClassDefFoundError: javafx/beans/value/ChangeListener
        at b4j.example.main._mysrvsock_newconnection(main.java:693)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)
        ... 12 more
Caused by: java.lang.ClassNotFoundException: javafx.beans.value.ChangeListener
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 18 more
Here is my jsn.cfg file:

Code: Select all

#Wed Sep 02 14:29:27 EEST 2015
bUseAuthentication=false
sHSecret=2743C71E3828333B277A8FE65050595BF13DD669
sBaudrate=38400
bUseAudio=false
bAutostart=true
sCOMport=/dev/ttyUSB0
nwPort=4443
iRecInterface=5
iPlayInterface=0
I am not trying to stream audio via Pocket Rx/Tx, I have the audio streamed my home already via a Sonos multiroom speaker set up. I would just like to use Pocket Rx/Tx as a simple remote to say change frequency if i'm listening in another room.

Anyone got any ideas?
User avatar
yo3ggx
Site Admin
Posts: 832
Joined: Wed Aug 15, 2012 8:30 pm
Location: Bucharest, România
Contact:

Re: Raspberry Pi

Post by yo3ggx »

The jarecmini (no-GUI) version 0.9.0-1 (wit the same features as the GUI version with the same number) is available for download here:
https://www.yo3ggx.ro/jAReC/jarecmini_v0.9.0-1.zip
This includes a sample cfg file, but you need to edit it for your own use.

Some command line switches are now available:
"-h" - display current settings and exit, even if autostart is enabled
"-a" - force autostart even if disabled in the config file

Please post here your finding if you test it.

Thank you
Dan
m6oba
Posts: 3
Joined: Tue Jun 21, 2016 11:55 am

Re: Raspberry Pi

Post by m6oba »

Hi Dan,

Thanks for updating this so quickly but unfortunately I still get a similar error using Pocket Rx/Tx v0.9.0 and jarecmini v0.9.0-1:

Code: Select all

Listening for connections on 192.168.0.78:4443
Connected!
jareccore._vvvvvvvv4 (java line: 899)
java.lang.RuntimeException: java.lang.NoClassDefFoundError: javafx/beans/value/ChangeListener
        at anywheresoftware.b4a.BA.raiseEvent2(BA.java:114)
        at anywheresoftware.b4a.BA$3.run(BA.java:178)
        at anywheresoftware.b4a.keywords.SimpleMessageLoop.runMessageLoop(SimpleMessageLoop.java:30)
        at anywheresoftware.b4a.StandardBA.startMessageLoop(StandardBA.java:26)
        at anywheresoftware.b4a.keywords.Common.StartMessageLoop(Common.java:131)
        at ro.yo3ggx.jarecmini.jareccore._vvvvvvvv4(jareccore.java:899)
        at ro.yo3ggx.jarecmini.main._appstart(main.java:42)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)
        at anywheresoftware.b4a.BA.raiseEvent(BA.java:84)
        at ro.yo3ggx.jarecmini.main.main(main.java:29)
Caused by: java.lang.NoClassDefFoundError: javafx/beans/value/ChangeListener
        at ro.yo3ggx.jarecmini.jareccore._mysrvsock_newconnection(jareccore.java:963)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)
        ... 13 more
Caused by: java.lang.ClassNotFoundException: javafx.beans.value.ChangeListener
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 19 more
not being very experienced with java and the raspberry pi this doesn't really mean a lot to me - hope it does to you!
User avatar
yo3ggx
Site Admin
Posts: 832
Joined: Wed Aug 15, 2012 8:30 pm
Location: Bucharest, România
Contact:

Re: Raspberry Pi

Post by yo3ggx »

Hi,

I've double checked and there is not a single trace of javafx in jarecmini code, so it may be something specific to your Java.
Some links that may help:
http://www.oracle.com/webfolder/technet ... rryfx.html

What Java version are you using on your Raspberry Pi?

Dan
m6oba
Posts: 3
Joined: Tue Jun 21, 2016 11:55 am

Re: Raspberry Pi

Post by m6oba »

I have tried a few version and get the same. I have just tried a clean install of Raspbian with the default java version shown below and still get the error.

Code: Select all

pi@raspberrypi:~/Downloads $ java -version
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode)
User avatar
yo3ggx
Site Admin
Posts: 832
Joined: Wed Aug 15, 2012 8:30 pm
Location: Bucharest, România
Contact:

Re: Raspberry Pi

Post by yo3ggx »

Can you downgrade the Java version to 1.8.0_31 or use OpenJFX?
Please check the link below:
https://www.raspberrypi.org/forums/view ... 81&t=97367

Dan
Post Reply