problems with inner classes
problems with inner classes
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
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
Re: problems with inner classes
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.classinonzuk 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 ?
- Sophrosyne
- Luxer
- Posts: 18
- Joined: Fri Nov 12, 2010 1:45 pm
- Location: Birmingham, London
Who is online
Users browsing this forum: No registered users and 96 guests