Hi, I am in the process of setting up a HP xt595 with Andys Ham Radio Linux (A premade ubuntu iso, with lots of ham programs). I realized it didn't come with java after first downloading\trying to run YAAC, so I installed openjdk6. I now get this error when trying to run it, even on a fresh download.
made java.library.path=/home/b0tz/Downloads/YAAC/lib/rxtx-2.2pre2-bins/i686-pc-linux-gnu
java.lang.reflect.InvocationTargetException
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:622)
at org.ka2ddo.yaac.YAAC.main(YAAC.java:258)
Caused by: java.awt.HeadlessException
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:173)
at java.awt.Window.<init>(Window.java:547)
at java.awt.Frame.<init>(Frame.java:419)
at java.awt.Frame.<init>(Frame.java:384)
at javax.swing.SwingUtilities$SharedOwnerFrame.<init>(SwingUtilities.java:1755)
at javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1832)
at javax.swing.JWindow.<init>(JWindow.java:185)
at javax.swing.JWindow.<init>(JWindow.java:137)
at org.ka2ddo.yaac.gui.MainFrame.showSplashScreen(MainFrame.java:134)
... 5 more
loading plugin --core-- name YAAC version 1.0-beta43(04-Sep-2014)
scanning plugin JAR file /home/b0tz/Downloads/YAAC/plugins/sampleplugin.jar
attempting to load provider class org.ka2ddo.yaac.SamplePluginProvider
loading plugin /home/b0tz/Downloads/YAAC/plugins/sampleplugin.jar name YAAC Sample Plug-in version V0.0
java.awt.HeadlessException
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:173)
at java.awt.Window.<init>(Window.java:547)
at java.awt.Frame.<init>(Frame.java:419)
at java.awt.Frame.<init>(Frame.java:384)
at javax.swing.JFrame.<init>(JFrame.java:174)
at org.ka2ddo.yaac.gui.MainFrame.<init>(MainFrame.java:151)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:534)
at java.lang.Class.newInstance(Class.java:374)
at org.ka2ddo.yaac.YAAC.main(YAAC.java:369)
moving new upgrade.jar into place
b0tz@b0tz-ham:~/Downloads/YAAC$
I tried to download and install it on my newer Linux Mint laptop - I got several errors when first trying to run it, so I just chmod 777'd it and it booted right up - but, this 'fix' did not fix the problem pasted above - also the errors were not the same on both laptops. Thanks for any information you can provide
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You received the java.awt.HeadlessException. That means that you installed only the core Java Runtime Environment without the graphical extensions. For some reason, the OpenJDK distro of Java is split so you can install the JRE core without the graphical support libraries (which communicate with an X server for rendering the graphical output).
However, YAAC is inherently a graphical program, so it requires the Java graphical (AWT/Swing) environment, and so you have to install the entire openjdk-6-jre, not just openjdk-6-jre-headless. It also requires that you have an X-server based graphical desktop running on your system when you start YAAC (another reason YAAC might not start even if you have the whole JRE installed).
Note also, if you are not on Intel/AMD hardware (for example, running on an ARM-based Raspberry Pi or BeagleBone), you will also want to install the operating system distro's version of the librxtx-java package, as the YAAC distro only includes RXTX native libraries for Intel processors. Otherwise, you will not be able to access hardware serial ports to connect to TNCs and GPS receivers.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2014-09-19
Wow, amazing reply time. Thank you sir.. I funnily actually realized this simple fix (I had installed openjdk-6-jre-headless, and not the original package). It is up and running now, thank you!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2014-09-19
Hi, I went away for some time, did no changes, and now I am getting this error on startup
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2014-09-19
very interesting. I am solving all my problems tonight - I had to point the program to execute in the YAAC folder, for some reason not from whole path. Thanks and disregard
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2014-09-19
So I just tried importing a map file of the state of Washington that I know works as I used it on my other install, imported fine, right after I try to select its location the program crashes, see
Just how big is this image file? It's possible the JRE authors made the usual mistake in the C++ interpreter code to not check for malloc() failures, because you got a SIGSEGV on address 0 in the interpreter code. You might try running YAAC with a bigger memory heap limit than the default, for example
java -Xmx768m -jar YAAC.jar
(assuming you have enough memory on your computer to do that).
Re: the incorrect directory problem: that was supposed to be fixed, but apparently another edit reordered the code and broke it again. To be fixed in next build.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2014-09-19
Good to know that the directory launch problem was found-
I tried running with that syntax, and 1024m, both giving crashes. I may start at a fresh YAAC install because apparently when I start it now, it is rendering no maps at all. I will try a fresh install and see.
You may want to upgrade to openjdk-7-jre. Not sure how you're hitting this bug in the runtime, but it doesn't make sense. I may need to see the hserr_pidNNNN.log file.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I am in the process of setting up a HP xt595 with Andys Ham Radio Linux (A premade ubuntu iso, with lots of ham programs). I realized it didn't come with java after first downloading\trying to run YAAC, so I installed openjdk6. I now get this error when trying to run it, even on a fresh download.
b0tz@b0tz-ham:~/Downloads/YAAC$ java -jar YAAC.jar
os.name=Linux
os.version=3.13.0-34-generic
os.arch=i386
java.version=1.6.0_32
java.class.version=50.0
1: file:/home/b0tz/Downloads/YAAC/YAAC.jar
made java.library.path=/home/b0tz/Downloads/YAAC/lib/rxtx-2.2pre2-bins/i686-pc-linux-gnu
java.lang.reflect.InvocationTargetException
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:622)
at org.ka2ddo.yaac.YAAC.main(YAAC.java:258)
Caused by: java.awt.HeadlessException
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:173)
at java.awt.Window.<init>(Window.java:547)
at java.awt.Frame.<init>(Frame.java:419)
at java.awt.Frame.<init>(Frame.java:384)
at javax.swing.SwingUtilities$SharedOwnerFrame.<init>(SwingUtilities.java:1755)
at javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1832)
at javax.swing.JWindow.<init>(JWindow.java:185)
at javax.swing.JWindow.<init>(JWindow.java:137)
at org.ka2ddo.yaac.gui.MainFrame.showSplashScreen(MainFrame.java:134)
... 5 more
loading plugin --core-- name YAAC version 1.0-beta43(04-Sep-2014)
scanning plugin JAR file /home/b0tz/Downloads/YAAC/plugins/sampleplugin.jar
attempting to load provider class org.ka2ddo.yaac.SamplePluginProvider
loading plugin /home/b0tz/Downloads/YAAC/plugins/sampleplugin.jar name YAAC Sample Plug-in version V0.0
java.awt.HeadlessException
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:173)
at java.awt.Window.<init>(Window.java:547)
at java.awt.Frame.<init>(Frame.java:419)
at java.awt.Frame.<init>(Frame.java:384)
at javax.swing.JFrame.<init>(JFrame.java:174)
at org.ka2ddo.yaac.gui.MainFrame.<init>(MainFrame.java:151)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:534)
at java.lang.Class.newInstance(Class.java:374)
at org.ka2ddo.yaac.YAAC.main(YAAC.java:369)
moving new upgrade.jar into place
b0tz@b0tz-ham:~/Downloads/YAAC$
I tried to download and install it on my newer Linux Mint laptop - I got several errors when first trying to run it, so I just chmod 777'd it and it booted right up - but, this 'fix' did not fix the problem pasted above - also the errors were not the same on both laptops. Thanks for any information you can provide
You received the java.awt.HeadlessException. That means that you installed only the core Java Runtime Environment without the graphical extensions. For some reason, the OpenJDK distro of Java is split so you can install the JRE core without the graphical support libraries (which communicate with an X server for rendering the graphical output).
However, YAAC is inherently a graphical program, so it requires the Java graphical (AWT/Swing) environment, and so you have to install the entire openjdk-6-jre, not just openjdk-6-jre-headless. It also requires that you have an X-server based graphical desktop running on your system when you start YAAC (another reason YAAC might not start even if you have the whole JRE installed).
Note also, if you are not on Intel/AMD hardware (for example, running on an ARM-based Raspberry Pi or BeagleBone), you will also want to install the operating system distro's version of the librxtx-java package, as the YAAC distro only includes RXTX native libraries for Intel processors. Otherwise, you will not be able to access hardware serial ports to connect to TNCs and GPS receivers.
Wow, amazing reply time. Thank you sir.. I funnily actually realized this simple fix (I had installed openjdk-6-jre-headless, and not the original package). It is up and running now, thank you!
Hi, I went away for some time, did no changes, and now I am getting this error on startup
http://pastebin.com/fAMFdYkP
very interesting. I am solving all my problems tonight - I had to point the program to execute in the YAAC folder, for some reason not from whole path. Thanks and disregard
So I just tried importing a map file of the state of Washington that I know works as I used it on my other install, imported fine, right after I try to select its location the program crashes, see
http://pastebin.com/81Pdpa9x
Just how big is this image file? It's possible the JRE authors made the usual mistake in the C++ interpreter code to not check for malloc() failures, because you got a SIGSEGV on address 0 in the interpreter code. You might try running YAAC with a bigger memory heap limit than the default, for example
java -Xmx768m -jar YAAC.jar
(assuming you have enough memory on your computer to do that).
Re: the incorrect directory problem: that was supposed to be fixed, but apparently another edit reordered the code and broke it again. To be fixed in next build.
Good to know that the directory launch problem was found-
I tried running with that syntax, and 1024m, both giving crashes. I may start at a fresh YAAC install because apparently when I start it now, it is rendering no maps at all. I will try a fresh install and see.
http://pastebin.com/8RUb2e7t latest crash log
You may want to upgrade to openjdk-7-jre. Not sure how you're hitting this bug in the runtime, but it doesn't make sense. I may need to see the hserr_pidNNNN.log file.