Cupcake

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

tmokonen
Posts: 1367
Joined: Sun Mar 12, 2006 6:46 pm
Location: Kelowna
Full name: Tony Mokonen

Re: Cupcake

Post by tmokonen »

Hi Dan. I get an error when I tried to run Cupcake. If I run the Cupcake.exe file, I get a message box with the error message

Could not find the main class: chess.Cupcake. Program will exit.

If I run the .jar file with java -jar cupcake.jar, the error is more explicit:

Code: Select all

Exception in thread "main" java.lang.UnsupportedClassVersionError: chess/Cupcake
 : Unsupported major.minor version 51.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(Unknown Source)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$000(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: chess.Cupcake. Program will exit.
I am using Java 1.6.0_32 on a 64 bit Windows 7 platform. Any guidance would be most appreciated.
User avatar
Dan Honeycutt
Posts: 5258
Joined: Mon Feb 27, 2006 4:31 pm
Location: Atlanta, Georgia

Re: Cupcake

Post by Dan Honeycutt »

tmokonen wrote:I am using Java 1.6.0_32 on a 64 bit Windows 7 platform. Any guidance would be most appreciated.
Hi Tony,

I'm pretty much a Java noob but I'm fairly sure the error you are getting is because I used a later version than you're using. Mine is 1.7.0_03.

I don't think I'm actually using anything that requires 1.7 and I believe there is a way to build for earlier versions but I don't know how to do that yet :cry: I fear you're going to have to download the later version.

Good luck and let me know how you do.

Best
Dan H.
User avatar
Graham Banks
Posts: 45655
Joined: Sun Feb 26, 2006 10:52 am
Location: Auckland, NZ

Re: Cupcake

Post by Graham Banks »

Dan Honeycutt wrote:..........Cupcake is a very weak engine and I have no aspiration to make it very strong. If that bug ever bites me I'll return to Bruja as the speed limitations of Java are pretty dire.............
A new version of Bruja would be great. Let that bug loose! :P
gbanksnz at gmail.com
User avatar
Jim Ablett
Posts: 2453
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: Cupcake

Post by Jim Ablett »

tmokonen wrote:Hi Dan. I get an error when I tried to run Cupcake. If I run the Cupcake.exe file, I get a message box with the error message

Could not find the main class: chess.Cupcake. Program will exit.

If I run the .jar file with java -jar cupcake.jar, the error is more explicit:

Code: Select all

Exception in thread "main" java.lang.UnsupportedClassVersionError: chess/Cupcake
 : Unsupported major.minor version 51.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(Unknown Source)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$000(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: chess.Cupcake. Program will exit.
I am using Java 1.6.0_32 on a 64 bit Windows 7 platform. Any guidance would be most appreciated.

Hi Tony,

You need to update you version of Java to 1.7.0. This is my version >

Code: Select all

-----------------------------------------------------------------------------------
java -version
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b20)
Java HotSpot(TM) Client VM (build 23.0-b21, mixed mode, sharing)

-------------------------------------------------------------------------------------
Jim.
User avatar
fern
Posts: 8755
Joined: Sun Feb 26, 2006 4:07 pm

Re: Cupcake

Post by fern »

Thabnks.
ZirconiumX
Posts: 1362
Joined: Sun Jul 17, 2011 11:14 am
Full name: Hannah Ravensloft

Re: Cupcake

Post by ZirconiumX »

gleperlier wrote:
fern wrote:Some guys say you stole my code from Moron 1.0.
I hope it is not truth.

Fern
Is Moron in Java :?: I thought it was your own developped language called C-- :wink:

Gab
No - the Special Edition uses C+- (pronounced "C more or less")

Matthew:out
tu ne cede malis, sed contra audentior ito
User avatar
gleperlier
Posts: 1033
Joined: Sat Feb 04, 2012 10:03 pm

Re: Cupcake

Post by gleperlier »

ZirconiumX wrote:
gleperlier wrote:
fern wrote:Some guys say you stole my code from Moron 1.0.
I hope it is not truth.

Fern
Is Moron in Java :?: I thought it was your own developped language called C-- :wink:

Gab
No - the Special Edition uses C+- (pronounced "C more or less")



Matthew:out
:D :D