Page 2 of 2

Re: Error on startup

PostPosted: 24 Sep 2009, 08:43
by nelyn
Thank you for keeping the program backwards compatible.

Re: Error on startup

PostPosted: 26 Sep 2009, 04:36
by nelyn
DennisBergkamp wrote:Ah, yes indeed. The only errors I'm getting when I switch back to 1.5 is each "@Override" statement.

Nelyn, try replacing your forge with the jar contained within the attached RAR. It's a recompiled version of the August 28 release (1.5 instead of 1.6 this time).
Ok, I have had a chance to check it out at work and almost everything seems to work. The only thing I can not do is download the card pics. That is not a problem at the moment because I can download them with the earlier version and transfer them to the current version, but I thought you should know about it when yo go to compile the next version.

Overall great work and thanks for keeping it compatible with older versions of java.

Re: Error on startup

PostPosted: 26 Sep 2009, 10:50
by Chris H.
nelyn wrote:Ok, I have had a chance to check it out at work and almost everything seems to work. The only thing I can not do is download the card pics.
Forge needs to find a folder named "pics" or it will fail to download any pictures and will give you this error message.

Sometimes we will forget to include a pics folder with the forge distribution. :)

Re: Error on startup

PostPosted: 27 Sep 2009, 04:25
by nelyn
Yeah, I had read that earlier. I forgot to say that I had created the folder and still nothing happened when I clicked the download button. I did not receive any error or indication that anything was downloading. I even opened the folder to see if maybe the files were being downloaded (like I did in the previous versions), but they were not. Nothing at all happened when I clicked the download button. It remained highlighted for 2 or 3 seconds then cleared.

I was able to get the pictures though. I am able to get the new version to work at home so I downloaded them there then copied them to the 1.5 compatible version that you folks made for me.

Re: Error on startup

PostPosted: 27 Sep 2009, 08:33
by silly freak
you could try to run forge from the console. maybe an error appears there that was not shown in the GUI.

I'm glad that you solved it for you, it remains a bug though

Re: Error on startup

PostPosted: 27 Sep 2009, 10:16
by nelyn
How would I run it through the console? I have only ever just clicked on the runforge file.

Re: Error on startup

PostPosted: 27 Sep 2009, 11:19
by silly freak
it depends on your platform. some platforms may have a "run from terminal" or similar option in the context menu.
if not, of course, you have to open up a terminal.
  • under windows, press windows+r, type cmd and hit enter.
  • I use Ubuntu, here you can go to the menu Applications/Utilities (don't call me on the names, i have the german version), and click on terminal
  • I don't have a clue on mac. a google search surely does the trick

once you're in the terminal, try
Code: Select all
java -version
. it that doesn't work, try to use the full path, such as
Code: Select all
"C:\Program Files\Java\jre6\bin\java" -version
(the quotes are needed if the path contains spaces). "-version" is just to make sure that java actually works

now that you have that, try
Code: Select all
java -jar run-forge.jar
(don't forget to specify the path to your forge directory)
forge should be running, and you can see various output on the console, for example the deck lists when a game starts. when you try to download the pictures, maybe an error such as
Code: Select all
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException
   at pictures.Test$MyAction.actionPerformed(Test.java:100)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
   at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
   at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
...
appears on the console. if so, post it so we can understand what happened to you

Re: Error on startup

PostPosted: 27 Sep 2009, 13:19
by Chris H.
On the Mac:

Launch "Terminal.app" which can be found in /Applications/Utilities/ folder.

You can type "java -version" in the terminal window and hit enter for the java version on your Mac.

While you can run Forge from the terminal window, there is no need to do so. Instead you can run Forge by double clicking on it's icon from the Finder. Then launch "Console.app" which can also be found in the /Applications/Utilities/ folder.

The Console window will display display the same sort of information as found in the console for Windows and *Nix operating systems.

Re: Error on startup

PostPosted: 28 Sep 2009, 04:51
by nelyn
Ok, I ran forge from the console. Here is what I get when trying to download the card pics.

H:\09-18-forge-full>java -jar run-forge.jar
Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: javax.swing.
JOptionPane.createDialog(Ljava/lang/String;)Ljavax/swing/JDialog;
at Gui_DownloadPictures.getDlg(Gui_DownloadPictures.java:145)
at Gui_DownloadPictures.startDownload(Gui_DownloadPictures.java:235)
at Gui_NewGame$3.actionPerformed(Gui_NewGame.java:246)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown
Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Re: Error on startup

PostPosted: 28 Sep 2009, 08:58
by silly freak
yeah, i'm sorry about that. the method mentioned here was only added in java 1.6, which means you would need that version of java for the code to work. I can't do anything about that; we could maybe try to make it backwards compatible for future versions.
the thing should work if you update your JRE to 1.6, however.

Re: Error on startup

PostPosted: 28 Sep 2009, 09:01
by nelyn
Yeah that would be best, but I do not have that option on the work PCs. I guess as long as the rest of Forge is still 1.5 Compatible and I can Download the pics manually, then everything is still good.