Page 1 of 1

Java 7 and running Forge on a Mac

PostPosted: 21 Aug 2013, 12:08
by timmermac
If you are on a Mac and have issues with it seeing Java 7 as the default installed version, go install the full JDK (Java Development Kit) instead of just the JRE (Java Runtime Environment), it makes all the correct file and path associations.
This was posted in the most recent beta topic and has been verified to work by at least one other Mac user. This will be stickied for the time being.

Re: Java 7 and running Forge on a Mac

PostPosted: 08 Sep 2013, 04:52
by Bog Wraith
I can verify that this works as I could not launch Forge after installing Java 7 JRE by itself. Once I also installed the JDK version of Java 7, double clicking on the forge.command file launched the game with no other issues.

Thanks again goes to spr for pointing this out to me in the Forge Beta: 08-30-2013 ver 1.4.7 thread. (Thanks Steve! :) )

Re: Java 7 and running Forge on a Mac

PostPosted: 24 Sep 2013, 20:16
by Esquire90
Description: I selected an AI deck and a Player deck and clicked "Start."

NullPointerException | Open
Code: Select all
Forge Version:    1.4.7-r23046M
Operating System: Mac OS X 10.8.5 x86_64
Java Version:     1.7.0_40 Oracle Corporation

java.lang.NullPointerException
   at forge.deck.DeckgenUtil.getConstructedDeck(DeckgenUtil.java:117)
   at forge.gui.toolbox.special.FDeckChooser.getDeck(FDeckChooser.java:286)
   at forge.gui.toolbox.special.FDeckChooser.getPlayer(FDeckChooser.java:308)
   at forge.gui.home.sanctioned.CSubmenuConstructed.startGame(CSubmenuConstructed.java:102)
   at forge.gui.home.sanctioned.CSubmenuConstructed.access$100(CSubmenuConstructed.java:30)
   at forge.gui.home.sanctioned.CSubmenuConstructed$2.actionPerformed(CSubmenuConstructed.java:59)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
   at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
   at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
   at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
   at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
   at java.awt.Component.processMouseEvent(Component.java:6505)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)
   at java.awt.Component.processEvent(Component.java:6270)
   at java.awt.Container.processEvent(Container.java:2229)
   at java.awt.Component.dispatchEventImpl(Component.java:4861)
   at java.awt.Container.dispatchEventImpl(Container.java:2287)
   at java.awt.Component.dispatchEvent(Component.java:4687)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
   at java.awt.Container.dispatchEventImpl(Container.java:2273)
   at java.awt.Window.dispatchEventImpl(Window.java:2719)
   at java.awt.Component.dispatchEvent(Component.java:4687)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
   at java.awt.EventQueue.access$200(EventQueue.java:103)
   at java.awt.EventQueue$3.run(EventQueue.java:694)
   at java.awt.EventQueue$3.run(EventQueue.java:692)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
   at java.awt.EventQueue$4.run(EventQueue.java:708)
   at java.awt.EventQueue$4.run(EventQueue.java:706)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
   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)

Re: Java 7 and running Forge on a Mac

PostPosted: 24 Sep 2013, 21:40
by lasthours
Bog Wraith wrote:I can verify that this works as I could not launch Forge after installing Java 7 JRE by itself. Once I also installed the JDK version of Java 7, double clicking on the forge.command file launched the game with no other issues.

Thanks again goes to spr for pointing this out to me in the Forge Beta: 08-30-2013 ver 1.4.7 thread. (Thanks Steve! :) )
Me also, works fine now so thanks. Minor issue is my pointing folder for decks to a dropbox folder. Profile needs c:\blah\dropbox and mac wants /user/blah/dropbox. Oh well, 2 .profiles it is. Small price to pay.

Re: Java 7 and running Forge on a Mac

PostPosted: 08 Oct 2015, 00:32
by PikWik
i can confirm OSX 10.7.4 needs the JDK for java 7 as well as java 7 JRE.

and that the official OSX version does not work for me (immediately crashes upon opening). however, downloading the windows version and double clicking the forge-gui-desktop.jar file runs just fine. LQ set downloader and all.

i spent a good hour + trying everything. then, after giving up/taking a break, noticed i had a windows version (1.5.33) from my frantic downloading. i tried everything from loading java 8, to 7 and even earlier java 6 versions of forge, much to my dismay. did some more research on this forum and found that other folks were having issues with OSX and forge. from reading, java 7 plus the JDK seemed the right recipe for running forge. but it still crashed upon loading the OSX version. then, said what the hey and tried loading just the .jar file from the windows version and at long last it finally worked!

thanks so much for everyone's hard work with this project

Re: Java 7 and running Forge on a Mac

PostPosted: 08 Oct 2015, 16:39
by correioalternativo
And Ubuntu? Weeks ago I tested the system and Forge did not run. I tried JDK and JRE, version 7 and 8 etc., but still nothing.

Re: Java 7 and running Forge on a Mac

PostPosted: 24 Oct 2015, 20:18
by correioalternativo
correioalternativo wrote:And Ubuntu? Weeks ago I tested the system and Forge did not run. I tried JDK and JRE, version 7 and 8 etc., but still nothing.
After reinstalling Ubuntu, Forge works :D