When I run java -jar jAReC_v0.9.0-16.jar I get this:
pi@kd4kso:~/Downloads/jARec $ java -jar jAReC_v0.9.0-16.jar
Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:207)
at java.awt.Window.<init>(Window.java:535)
at java.awt.Frame.<init>(Frame.java:420)
at javax.swing.JFrame.<init>(JFrame.java:218)
at com.javafx.main.Main$1.run(Main.java:882)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:745)
at java.awt.EventQueue.access$300(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:706)
at java.awt.EventQueue$3.run(EventQueue.java:704)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:77)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:715)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Here is my java version
pi@kd4kso:~/Downloads/jARec $ java -version
java version "1.7.0_101"
OpenJDK Runtime Environment (IcedTea 2.6.6) (7u101-2.6.6-2~deb8u1+rpi1)
OpenJDK Zero VM (build 24.95-b01, interpreted mode)
JAReC on Raspberry Pi3
Re: JAReC on Raspberry Pi3
Hi,
First, as you run it on a Raspberry Pi try to use the command line version (jarecmini), as the standard version require javafx (for the GUI).
I haven't test it (yet) with OpenJDK, just with Oracle Java 1.8-x.
73 Dan YO3GGX
First, as you run it on a Raspberry Pi try to use the command line version (jarecmini), as the standard version require javafx (for the GUI).
I haven't test it (yet) with OpenJDK, just with Oracle Java 1.8-x.
73 Dan YO3GGX
Re: JAReC on Raspberry Pi3
I will let you know what I find
Thnx 73
Thnx 73
Re: JAReC on Raspberry Pi3
I am sorry but I am new to linux. This is what I got
pi@kd4kso:~/Downloads/jARec $ java -jar jAReCmini_v0.9.0-16.jar
Please create jsn.cfg configuration file first
jareccore._vvvvvvvv6 (java line: 641)
java.lang.RuntimeException: Object should first be initialized (Map).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:32)
at anywheresoftware.b4a.objects.collections.Map.GetDefault(Map.java:73)
at ro.yo3ggx.jarecmini.jareccore._vvvvvvvv6(jareccore.java:641)
at ro.yo3ggx.jarecmini.main._appstart(main.java:42)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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)
pi@kd4kso:~/Downloads/jARec $ java -jar jAReCmini_v0.9.0-16.jar
Please create jsn.cfg configuration file first
jareccore._vvvvvvvv6 (java line: 641)
java.lang.RuntimeException: Object should first be initialized (Map).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:32)
at anywheresoftware.b4a.objects.collections.Map.GetDefault(Map.java:73)
at ro.yo3ggx.jarecmini.jareccore._vvvvvvvv6(jareccore.java:641)
at ro.yo3ggx.jarecmini.main._appstart(main.java:42)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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)
Re: JAReC on Raspberry Pi3
OK I got the jsn.cfg file from version 8 of jAReC. I set it up and run jarecmini.jar
pi@kd4kso:~/Downloads/jARec $ java -jar jarecmini.jar
jAReC mini version 0.8.1
Listening for connections on 192.168.0.234:4443
main._appstart (java line: 279)
The I start Pocket RxTx on my Andriod tablet and when I try to connect the console on the Pi does this:
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
I tried running jAReC v 9 with the same jsn.cfg and it won't recognize the comm port. I have the file set to /dev/USB0
pi@kd4kso:~/Downloads/jARec $ java -jar jAReCmini_v0.9.0-16.jar
Please set valid Serial port in the jsn.cfg configuration file
jAReCmini0.9.0-16
Current settings:
COM Port:
Baudrate: 38400
TCP port: 4443
Use audio: true
Play Interface: (0) - ALSA [default]
Rec Interface: (3) - CODEC [plughw:1,0]
Use authentication: true
Secret: 2743C71E3828333B277A8FE65050595BF13DD669
***********
Available com ports:
/dev/ttyAMA0
/dev/ttyUSB0
java.lang.NullPointerException
Available Audio IN devices:
(03) CODEC [plughw:1,0]
java.lang.NullPointerException
Available Audio OUT devices:
(00) ALSA [default]
(01) ALSA [plughw:0,0]
(02) ALSA [plughw:0,1]
If ok, set bAutostart=true in the jsn.cfg file and run again
This is what the cfg file actually says:
#Wed Sep 02 14:29:27 EEST 2015
bUseAuthentication=true
sHSecret=2743C71E3828333B277A8FE65050595BF13DD669
sBaudrate=38400
bUseAudio=true
bAutostart=true
sCOMport=/dev/ttyUSB0
nwPort=4443
iRecInterface=3
iPlayInterface=0
pi@kd4kso:~/Downloads/jARec $ java -jar jarecmini.jar
jAReC mini version 0.8.1
Listening for connections on 192.168.0.234:4443
main._appstart (java line: 279)
The I start Pocket RxTx on my Andriod tablet and when I try to connect the console on the Pi does this:
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
I tried running jAReC v 9 with the same jsn.cfg and it won't recognize the comm port. I have the file set to /dev/USB0
pi@kd4kso:~/Downloads/jARec $ java -jar jAReCmini_v0.9.0-16.jar
Please set valid Serial port in the jsn.cfg configuration file
jAReCmini0.9.0-16
Current settings:
COM Port:
Baudrate: 38400
TCP port: 4443
Use audio: true
Play Interface: (0) - ALSA [default]
Rec Interface: (3) - CODEC [plughw:1,0]
Use authentication: true
Secret: 2743C71E3828333B277A8FE65050595BF13DD669
***********
Available com ports:
/dev/ttyAMA0
/dev/ttyUSB0
java.lang.NullPointerException
Available Audio IN devices:
(03) CODEC [plughw:1,0]
java.lang.NullPointerException
Available Audio OUT devices:
(00) ALSA [default]
(01) ALSA [plughw:0,0]
(02) ALSA [plughw:0,1]
If ok, set bAutostart=true in the jsn.cfg file and run again
This is what the cfg file actually says:
#Wed Sep 02 14:29:27 EEST 2015
bUseAuthentication=true
sHSecret=2743C71E3828333B277A8FE65050595BF13DD669
sBaudrate=38400
bUseAudio=true
bAutostart=true
sCOMport=/dev/ttyUSB0
nwPort=4443
iRecInterface=3
iPlayInterface=0
Re: JAReC on Raspberry Pi3
Has anyone been able to get the Android Pocket Transceiver working on a Raspberry Pi? I have tried the mini versions 0.8.1 and 0.9.0-16 along with the latest Oracle JRE version and the versions in the Pi repository. I have also tried the OpenJDK. I am getting the same results as the others - a 'ChangeListener' error (version 0.8.1) or can not find my comm port (version 0.9.0-16). I hope this can work, I have purchased the app just in case it does.
Great project thank you,
Dan - KB7EIU
Great project thank you,
Dan - KB7EIU
Re: JAReC on Raspberry Pi3
Hi Dan,
I'll be back after that.
Thank you for your feedback.
73 Dan YO3GGX.
I will have a few days off second part of this week and I will take a look at this issue. I never tested it on Raspberry Pi as I don't have one, but I will check it again on a Linux computer.kb7eiu wrote:I am getting the same results as the others - a 'ChangeListener' error (version 0.8.1) or can not find my comm port (version 0.9.0-16). I hope this can work, I have purchased the app just in case it does.
I'll be back after that.
Thank you for your feedback.
73 Dan YO3GGX.
Re: JAReC on Raspberry Pi3
Hi Dan,
First sorry for the late reply.
Please try jarecmini version 0.9.0-17 from here:
https://www.yo3ggx.ro/jAReC/jarecmini_v0.9.0-17.zip
What's new/changed in this version:
- the config file is automatically created at first start (no more included in the package)
- you can now enter the secret without running the main app (jAReC), directly from the console
- when run, all the parameters from the config file are displayed in the console
Bug solved:
- Java error when starting the application without a config file
You still get a Java error when disconnecting (java.lang.InterruptedException: sleep interrupted), but you can discard this error as does not affect the functionality of the application.
This version was tested on a CentOS 7 server as I don't have a Raspberry Pi to test.
Please play with it and send me your feedback.
Thank you.
Dan YO3GGX
First sorry for the late reply.
Please try jarecmini version 0.9.0-17 from here:
https://www.yo3ggx.ro/jAReC/jarecmini_v0.9.0-17.zip
What's new/changed in this version:
- the config file is automatically created at first start (no more included in the package)
- you can now enter the secret without running the main app (jAReC), directly from the console
- when run, all the parameters from the config file are displayed in the console
Bug solved:
- Java error when starting the application without a config file
You still get a Java error when disconnecting (java.lang.InterruptedException: sleep interrupted), but you can discard this error as does not affect the functionality of the application.
This version was tested on a CentOS 7 server as I don't have a Raspberry Pi to test.
Please play with it and send me your feedback.
Thank you.
Dan YO3GGX