Sillysoft
Steam users, please help Greenlight Lux Delux!
Sillysoft Forums
Forums Of Universal Domination 
Games
About - FAQ
Download - Buy
Lux Delux
Maps - Rankings
Download - Buy
Castle Vox
Maps - Rankings
Download - Buy
Forums
Join the Forums
Log in - Memberlist
  RSS feeds  
Art - Wiki
News - Search
problems with inner classes

 
Post new topic   Reply to topic    Sillysoft Games Forum Index -> Robot House
View previous topic :: View next topic  
Author Message
inonzuk
Lux Newbie


Joined: 19 Apr 2007
Posts: 20

PostPosted: Mon Jan 14, 2008 4:14 am    Post subject: problems with inner classes Reply with quote

Hi guys,

I wrote a robot who which extends SmartAgentBase and he contains an inner class. When debugging and running it via the Ecplise IDE everything works great.

However, when trying to run the robot not via the IDE by straight through the Lux application I get an error which I suspect is related to the inner class
"java.lang.NoClassDefFoundError: com/sillysoft/lux/agent/MixedAgent$Action"

I have two files: the "MixedAgent.class" is my robot and the "MixedAgent$Action.class" is the inner class.

Any ideas on why I get this problem and how to solve it ? Can a robot be composed of more than one class file ?

Thanks in advance
Inon
Back to top
View user's profile Send private message View inonzuk's ranking
Bertrand
Reaper Creator


Joined: 28 Nov 2005
Posts: 585
Location: Montreal

PostPosted: Mon Jan 14, 2008 6:54 am    Post subject: Re: problems with inner classes Reply with quote

inonzuk wrote:
Any ideas on why I get this problem and how to solve it ? Can a robot be composed of more than one class file ?


Yes. In your Agents folder, create the directory structure com/sillysoft/lux/agent/ and copy your class file to Agents/com/sillysoft/lux/agent/MixedAgent$Action.class
Back to top
View user's profile Send private message Send e-mail View Bertrand's ranking
Sophrosyne
Lux Newbie


Joined: 12 Nov 2010
Posts: 18
Location: Birmingham, London

PostPosted: Sun Dec 12, 2010 8:59 am    Post subject: Reply with quote

Ah genious, I was just having the same problem. Cheers Bertrand!
Back to top
View user's profile Send private message View Sophrosyne's ranking
Display posts from previous:   
Post new topic   Reply to topic    Sillysoft Games Forum Index -> Robot House All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Meowzers Action Cats is our newest feline fun mobile game. Romp with cute cats on your phone and tablet.

Castle Vox is a simultaneous-turns team strategy boardgame. Diplomacy meets Axis & Allies game.

Lux Delux is an advanced Risk world domination game with over 800 maps, hard AI, and online multi-player.

American History Lux takes you through the wars of USA history. — Ancient Empires Lux spans Babylon to the Roman Empire.

Lux Touch, Lux USA and Lux DLX let you conquer the world on your iPhone, iPod, and iPad.

Sillysoft makes games for Mac OS X, Windows XP/Vista/7 and Linux. Also mobile games for iPhones, iPads, and iPod Touch.

Macintosh users may be interested to see our favorite Mac OS X games. For the full Sillysoft empire check out the sitemap.

Because taking over the world is fun.
                                 - Lux