Loreinator / Shuffle-Move

Program to help choose moves in the Pokemon Shuffle puzzle game
GNU General Public License v3.0
95 stars 18 forks source link

java.awt.HeadlessException #112

Closed Igetin closed 8 years ago

Igetin commented 8 years ago

Trying to run Shuffle Move on Fedora. When I launch the .jar file, I get an error:

[admin@localhost Shuffle Move]$ ./launch.sh
[Feb 24, 2016 6:05:14 PM] [FINE] config/paths.txt (No such file or directory)
[Feb 24, 2016 6:05:14 PM] [FINE] /home/admin/Shuffle-Move/config/icons.txt (No such file or directory)
[Feb 24, 2016 6:05:14 PM] [FINE] /home/admin/Shuffle-Move/config/preferences.txt (No such file or directory)
[Feb 24, 2016 6:05:25 PM] [SEVERE] Failure on start:
java.awt.HeadlessException
    at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)
    at java.awt.Window.<init>(Window.java:536)
    at java.awt.Frame.<init>(Frame.java:420)
    at java.awt.Frame.<init>(Frame.java:385)
    at javax.swing.JFrame.<init>(JFrame.java:189)
    at shuffle.fwk.gui.ShuffleFrame.<init>(ShuffleFrame.java:84)
    at shuffle.fwk.ShuffleController.loadFrame(ShuffleController.java:425)
    at shuffle.fwk.ShuffleController.<init>(ShuffleController.java:211)
    at shuffle.fwk.ShuffleController.main(ShuffleController.java:157)
Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException
    at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)
    at java.awt.Window.<init>(Window.java:536)
    at java.awt.Frame.<init>(Frame.java:420)
    at java.awt.Frame.<init>(Frame.java:385)
    at javax.swing.JFrame.<init>(JFrame.java:189)
    at shuffle.fwk.gui.ShuffleFrame.<init>(ShuffleFrame.java:84)
    at shuffle.fwk.ShuffleController.getFrame(ShuffleController.java:418)
    at shuffle.fwk.ShuffleController$1.run(ShuffleController.java:161)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Any help? I have the latest Java installed.

Loreinator commented 8 years ago

Try updating your Java version I guess? It works on Ubuntu, Macintosh, Windows xp/7/8/10 so it's probably an issue with the Java version. 8u51 works the best, but it should work with any newer Java version after that.

-Andrew On Feb 24, 2016 11:22 AM, "Igetin" notifications@github.com wrote:

Trying to run Shuffle Move on Fedora. When I launch the .jar file, I get an error:

[admin@localhost Shuffle Move]$ ./launch.sh [Feb 24, 2016 6:05:14 PM] [FINE] config/paths.txt (No such file or directory) [Feb 24, 2016 6:05:14 PM] [FINE] /home/admin/Shuffle-Move/config/icons.txt (No such file or directory) [Feb 24, 2016 6:05:14 PM] [FINE] /home/admin/Shuffle-Move/config/preferences.txt (No such file or directory) [Feb 24, 2016 6:05:25 PM] [SEVERE] Failure on start: java.awt.HeadlessException at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204) at java.awt.Window.(Window.java:536) at java.awt.Frame.(Frame.java:420) at java.awt.Frame.(Frame.java:385) at javax.swing.JFrame.(JFrame.java:189) at shuffle.fwk.gui.ShuffleFrame.(ShuffleFrame.java:84) at shuffle.fwk.ShuffleController.loadFrame(ShuffleController.java:425) at shuffle.fwk.ShuffleController.(ShuffleController.java:211) at shuffle.fwk.ShuffleController.main(ShuffleController.java:157) Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204) at java.awt.Window.(Window.java:536) at java.awt.Frame.(Frame.java:420) at java.awt.Frame.(Frame.java:385) at javax.swing.JFrame.(JFrame.java:189) at shuffle.fwk.gui.ShuffleFrame.(ShuffleFrame.java:84) at shuffle.fwk.ShuffleController.getFrame(ShuffleController.java:418) at shuffle.fwk.ShuffleController$1.run(ShuffleController.java:161) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Any help?

— Reply to this email directly or view it on GitHub https://github.com/Loreinator/Shuffle-Move/issues/112.

Igetin commented 8 years ago

Like I said, I already have the latest Java version. java -version returns the version number 1.8.0_72.

Loreinator commented 8 years ago

I'm responding through email, so your edit was never sent to me.

Try looking up fedora compatibility with Java swing gui windows. I don't have a fedora install at home and I'm on the train right now so searching is cumbersome and slow.

-Andrew On Feb 24, 2016 4:19 PM, "Igetin" notifications@github.com wrote:

Like I said, I already have the latest Java version. java -version returns the version number 1.8.0_72.

— Reply to this email directly or view it on GitHub https://github.com/Loreinator/Shuffle-Move/issues/112#issuecomment-188457083 .

Igetin commented 8 years ago

Hmm, it seems that the problem may not be in Fedora itself, but in OpenJDK which ships with Fedora. OpenJDK is known to sometimes have GUI problems. Going to install Oracle's JDK and see if it works after that.

Loreinator commented 8 years ago

Alright, good luck, I hope it works!

-Andrew On Feb 24, 2016 4:56 PM, "Igetin" notifications@github.com wrote:

Hmm, it seems that the problem may not be in Fedora itself, but in OpenJDK which ships with Fedora. OpenJDK is known to sometimes have GUI problems. Going to install Oracle's JDK and see if it works after that.

— Reply to this email directly or view it on GitHub https://github.com/Loreinator/Shuffle-Move/issues/112#issuecomment-188469953 .

Igetin commented 8 years ago

OpenJDK was the problem indeed! Works fine on Oracle's JDK. Closing this issue.

Also, maybe you should mention in the readme file that OpenJDK does not work with Shuffle Move?

Loreinator commented 8 years ago

Awesome! Thanks for reporting it, it's good to keep a record of known problems.

-Andrew On Feb 24, 2016 5:14 PM, "Igetin" notifications@github.com wrote:

Closed #112 https://github.com/Loreinator/Shuffle-Move/issues/112.

— Reply to this email directly or view it on GitHub https://github.com/Loreinator/Shuffle-Move/issues/112#event-564456440.