It is currently 07 Jul 2021, 21:52
   
Text Size

Start-up Error on Mac OS X

Moderators: timmermac, friarsol, Blacksmith, KrazyTheFox, Agetian, CCGHQ Admins

Start-up Error on Mac OS X

Postby CatzPaw164 » 22 Sep 2009, 02:28

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)
----
What is, is. What was, will be. What will be, was, and will be again.
CatzPaw164
 
Posts: 21
Joined: 22 Sep 2009, 02:21
Location: Just South of Atlanta, GA
Has thanked: 1 time
Been thanked: 0 time

Re: Start-up Error on Mac OS X

Postby silly freak » 22 Sep 2009, 09:43

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
___

where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
silly freak
DEVELOPER
 
Posts: 598
Joined: 26 Mar 2009, 07:18
Location: Vienna, Austria
Has thanked: 93 times
Been thanked: 25 times

Re: Start-up Error on Mac OS X

Postby Chris H. » 22 Sep 2009, 10:55

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
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: Start-up Error on Mac OS X

Postby CatzPaw164 » 22 Sep 2009, 16:29

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
----
What is, is. What was, will be. What will be, was, and will be again.
CatzPaw164
 
Posts: 21
Joined: 22 Sep 2009, 02:21
Location: Just South of Atlanta, GA
Has thanked: 1 time
Been thanked: 0 time

Re: Start-up Error on Mac OS X

Postby Chris H. » 22 Sep 2009, 16:40

Were you able to run earlier versions of Forge?
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: Start-up Error on Mac OS X

Postby CatzPaw164 » 22 Sep 2009, 16:42

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?
----
What is, is. What was, will be. What will be, was, and will be again.
CatzPaw164
 
Posts: 21
Joined: 22 Sep 2009, 02:21
Location: Just South of Atlanta, GA
Has thanked: 1 time
Been thanked: 0 time

Re: Start-up Error on Mac OS X

Postby DennisBergkamp » 22 Sep 2009, 17:11

User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: Start-up Error on Mac OS X

Postby Chris H. » 22 Sep 2009, 17:12

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.
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: Start-up Error on Mac OS X

Postby CatzPaw164 » 22 Sep 2009, 18:48

The MTGForge0528 version of Forge works on my Mac...
----
What is, is. What was, will be. What will be, was, and will be again.
CatzPaw164
 
Posts: 21
Joined: 22 Sep 2009, 02:21
Location: Just South of Atlanta, GA
Has thanked: 1 time
Been thanked: 0 time

Re: Start-up Error on Mac OS X

Postby silly freak » 22 Sep 2009, 19:49

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!
___

where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
silly freak
DEVELOPER
 
Posts: 598
Joined: 26 Mar 2009, 07:18
Location: Vienna, Austria
Has thanked: 93 times
Been thanked: 25 times

Re: Start-up Error on Mac OS X

Postby Chris H. » 22 Sep 2009, 23:39

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.
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: Start-up Error on Mac OS X

Postby Chris H. » 24 Sep 2009, 00:10

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
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: Start-up Error on Mac OS X

Postby CatzPaw164 » 25 Sep 2009, 18:10

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?
----
What is, is. What was, will be. What will be, was, and will be again.
CatzPaw164
 
Posts: 21
Joined: 22 Sep 2009, 02:21
Location: Just South of Atlanta, GA
Has thanked: 1 time
Been thanked: 0 time

Re: Start-up Error on Mac OS X

Postby Chris H. » 25 Sep 2009, 20:17

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)
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: Start-up Error on Mac OS X

Postby DennisBergkamp » 25 Sep 2009, 21:24

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
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Next

Return to Forge

Who is online

Users browsing this forum: Google [Bot] and 11 guests

cron

Who is online

In total there are 12 users online :: 1 registered, 0 hidden and 11 guests (based on users active over the past 10 minutes)
Most users ever online was 1922 on 07 Jun 2021, 06:01

Users browsing this forum: Google [Bot] and 11 guests

Login Form