Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #23456
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2013-04-14 20:53 -0700 |
| Message-ID | <237b5bd9-cfc3-4d9b-a74c-1fc62743daf3@googlegroups.com> (permalink) |
| Subject | Exception in thread "main" java.awt.HeadlessException |
| From | SpreadTooThin <bjobrien62@gmail.com> |
I am having trouble getting a jar file to run properly.
1st I had logged into the Raspberry from my MAC using XQuartx xterm
bash-3.2$ssh -X pi@raspberrypi
pi@raspberrypi ~ $ echo $DISPLAY
localhost:10.0
pi@raspberrypi ~ $wish
I checked the xwindows system and found the following.
And I get wish's display on my mac as an x-window.
But when I run my java installation jar file I get this:
pi@raspberrypi ~ $ java -version
java version "1.7.0_10"
Java(TM) SE Embedded Runtime Environment (build 1.7.0_10-b18, headless)
Java HotSpot(TM) Embedded Client VM (build 23.6-b04, mixed mode)
pi@raspberrypi ~ $ java -jar MY-installer.jar
Exception in thread "main" 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 java.awt.Frame.<init>(Frame.java:385)
at javax.swing.JFrame.<init>(JFrame.java:180)
at org.xxxx.installer.Installer.<init>(Installer.java:62)
at org.xxxx.installer.Installer.main(Installer.java:53)
pi@raspberrypi ~ $
So.. What's going on? Any ideas?
I installed java from
http://www.oracle.com/technetwork/java/embedded/downloads/javase/index.html
ARMv6/7 Linux - Headless EABI, VFP, SoftFP ABI, Little Endian1
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
Exception in thread "main" java.awt.HeadlessException SpreadTooThin <bjobrien62@gmail.com> - 2013-04-14 20:53 -0700 Re: Exception in thread "main" java.awt.HeadlessException paul.cager@gmail.com - 2013-04-15 03:23 -0700 Re: Exception in thread "main" java.awt.HeadlessException Roedy Green <see_website@mindprod.com.invalid> - 2013-04-15 10:41 -0700
csiph-web