Page 1 of 2

Start-up Error on Mac OS X

PostPosted: 22 Sep 2009, 02:28
by CatzPaw164
I receive the following errors when launching MTG Forge on my Mac. I am running OS X 10.5.8 on 1.67 GHz PowerPC G4 with 2 Gb DDR2 SDRAM. I have modified my Java Preferences and I do not have the 64-bit Java files. However, I can run the Windows version under Virtual PC. Would love to get this running native on Mac in 32-bit mode. I have downloaded Eclipse in case I need to modify some source files and recompile (I also have NetBeans the full package). Thanks for your help.

Macintosh:09-18-forge-full sherri$ java -jar run-forge.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)

Re: Start-up Error on Mac OS X

PostPosted: 22 Sep 2009, 09:43
by silly freak
that seems pretty severe; forge code doesn't even appear in the stack trace. are you able to run other java apps with that JRE? if not, better search in an apple forum or reinstall the JRE.
maybe your JRE is not recent enough - I don't really know how compatible forge is with older environments. alternately, you could try to compile the code with a compatibility option

Re: Start-up Error on Mac OS X

PostPosted: 22 Sep 2009, 10:55
by Chris H.
I receive the following errors when launching MTG Forge on my Mac. I am running OS X 10.5.8 on 1.67 GHz PowerPC G4 with 2 Gb DDR2 SDRAM. I have modified my Java Preferences and I do not have the 64-bit Java files.
Macintosh:09-18-forge-full sherri$ java -jar run-forge.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
You could try Software Update and make sure that you download and install the latest Apple supplied Java update.

I have an intel Mac with 64-bit Java and the beta version from our forums works OK for me. I have not yet tried to download the 09-18 version from google which Rares has uploaded.

If you are up to date on Java then try the beta version from our forums:

MTGForge 08/28 (unofficial BETA) version

Re: Start-up Error on Mac OS X

PostPosted: 22 Sep 2009, 16:29
by CatzPaw164
I have a feeling that my problem is that I am still using a PowerPC and not an Intel Mac. I am up to date on Java for a 32-bit machine. I can run other Java apps that are not specific for Intel Mac's.

I changed some settings and received the following errors:
Macintosh:09-18-forge-full sherri$ java -jar run-forge.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: Gui_NewGame (Unsupported major.minor version 50.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)


The strange part is I can run the windows version on this Mac using Virtual PC. It is really really slow... I am running the last version of Virtual PC with the following:

System: Microsoft Windows XP; Professional Version 2002, Service Pack 2
Computer: Microsoft Virtual PC; 686 Processor; 132 MHz, 512 MB RAM

Re: Start-up Error on Mac OS X

PostPosted: 22 Sep 2009, 16:40
by Chris H.
Were you able to run earlier versions of Forge?

Re: Start-up Error on Mac OS X

PostPosted: 22 Sep 2009, 16:42
by CatzPaw164
I have not tried to run earlier versions.

I am only two months in MTG and just found out about Forge a couple of days ago.

Can you provide a link to an older version?

Re: Start-up Error on Mac OS X

PostPosted: 22 Sep 2009, 17:11
by DennisBergkamp

Re: Start-up Error on Mac OS X

PostPosted: 22 Sep 2009, 17:12
by Chris H.
CatzPaw164 wrote:Can you provide a link to an older version?
You can try this one:

MTGForge 08/28 (unofficial BETA) version

This link will take you to a message with links to 08-28 version. If you scroll down the topics you will also see message topics about earlier versions. They will also have a link to older versions.

good luck.

Re: Start-up Error on Mac OS X

PostPosted: 22 Sep 2009, 18:48
by CatzPaw164
The MTGForge0528 version of Forge works on my Mac...

Re: Start-up Error on Mac OS X

PostPosted: 22 Sep 2009, 19:49
by silly freak
try to run it with eclipse:
  1. unpack the source into a folder
  2. in eclipse choose File/New/Java Project
  3. choose "create project from existing source" and choose the source folder you exported the source code to
  4. do any other project configurations
  5. find and select Gui_NewGame in the package explorer
  6. open Run/Run Configurations...
  7. create a run configuration. it will be filled for starting forge.
    In the same window, select the Arguments tab, and choose a working directory. that must be the directory that contains the forge files such as all-decks2.
After that, you should be able to launch forge with that configuration. that may work, because your eclipse will use compiler settings working for your JRE/JDK.
If it doesn't work, play a little with these options. select the forge project in the package explorer, and select Properties at the bottom of the context menu. On the Java Compiler page, you can lower the settings after enabling project specific settings

good luck!

Re: Start-up Error on Mac OS X

PostPosted: 22 Sep 2009, 23:39
by Chris H.
At some point Dennis will have the next beta version ready and he will leave a message with a url for the next version here on this forum. With some luck this next version will run without errors.

In the meantime the older version that you downloaded should keep you busy getting used to the Forge application.

Re: Start-up Error on Mac OS X

PostPosted: 24 Sep 2009, 00:10
by Chris H.
CatzPaw164 wrote:I have a feeling that my problem is that I am still using a PowerPC and not an Intel Mac. I am up to date on Java for a 32-bit machine. I can run other Java apps that are not specific for Intel Mac's.
Dennis just built a version of Forge that will work with Java 5. Download the Jar file at the link below and use it instead of the jar file in the 09-18 version.


0828jar.rar

Re: Start-up Error on Mac OS X

PostPosted: 25 Sep 2009, 18:10
by CatzPaw164
Thanks! This last version works except for downloading the pictures. I used the older version that worked and downloaded card images just fine. I have copied that pics folder to the newer versions folder and I some card art. How can I download all the card art - or are there cards for artwork is not available?

Re: Start-up Error on Mac OS X

PostPosted: 25 Sep 2009, 20:17
by Chris H.
CatzPaw164 wrote:Thanks! This last version works except for downloading the pictures. I used the older version that worked and downloaded card images just fine. I have copied that pics folder to the newer versions folder and I some card art. How can I download all the card art - or are there cards for artwork is not available?
When people download a newer version, they tend to copy over the pics from the previous version. This way Forge will only have to download the newest pics.

There are a few token pics that are not available via download. Elsewhere on the CCGH web site there is a forum devoted to high res pictures. There is a file there that can be downloaded. You can find the missing tokens there but you will have to find a program to reduce there size. I use GraphicConverter. 8)

Re: Start-up Error on Mac OS X

PostPosted: 25 Sep 2009, 21:24
by DennisBergkamp
Try downloading the pictures again with that version now that you've copied the /pics folder into your MTGForge folder (if no /pics folder exists, the download won't work).

Also, yeah there are a bunch of tokens that don't have card art which cannot be downloaded through the program itself. They have to downloaded manually... or, alternatively this link should have the majority of them:

viewtopic.php?f=26&t=934