Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #23456 > unrolled thread
| Started by | SpreadTooThin <bjobrien62@gmail.com> |
|---|---|
| First post | 2013-04-14 20:53 -0700 |
| Last post | 2013-04-15 10:41 -0700 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.lang.java.programmer
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
| From | SpreadTooThin <bjobrien62@gmail.com> |
|---|---|
| Date | 2013-04-14 20:53 -0700 |
| Subject | Exception in thread "main" java.awt.HeadlessException |
| Message-ID | <237b5bd9-cfc3-4d9b-a74c-1fc62743daf3@googlegroups.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
[toc] | [next] | [standalone]
| From | paul.cager@gmail.com |
|---|---|
| Date | 2013-04-15 03:23 -0700 |
| Message-ID | <12b8001a-3539-43d9-b262-ac6f92e8c82c@googlegroups.com> |
| In reply to | #23456 |
On Monday, 15 April 2013 04:53:09 UTC+1, SpreadTooThin wrote: > I am having trouble getting a jar file to run properly. > > 1st I had logged into the Raspberry from my MAC using XQuartx xterm > 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 You have installed the "reduced footprint" *headless* version of the Java runtime on your Pi, so it doesn't support GUIs. You will need to install a full version of Java (not the embedded version).
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2013-04-15 10:41 -0700 |
| Message-ID | <oteom8p9mcd6f0kgp11f5l7ui7jlojo3ls@4ax.com> |
| In reply to | #23456 |
On Sun, 14 Apr 2013 20:53:09 -0700 (PDT), SpreadTooThin <bjobrien62@gmail.com> wrote, quoted or indirectly quoted someone who said : > Exception in thread "main" java.awt.HeadlessException see http://mindprod.com/jgloss/runerrormessages.html#HEADLESSEXCEPTION -- Roedy Green Canadian Mind Products http://mindprod.com Computer programming is the best remedy for pain (physical or emotional) I have encountered. It requires so much concentration there is nothing left over to pay attention to the pain. They should teach this in AA.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web