Re: robocodeEngine is not loading bot

fnl <[email protected]> Sun, 8 Jan 2017 11:02:04 -0800 (PST)
Newsgroups gmane.comp.java.robocode
Message-ID <[email protected]>
You could try to set the ROBOTPATH environment variable e.g. using 
-DROBOTPATH=/home/max/robocode/robots when running your application from 
the command-line.

Robocode and the RobocodeEngine uses the ROBOTPATH environment to find 
where the robots are located.

This old thread might also give you a hint:
https://sourceforge.net/p/robocode/discussion/116459/thread/06b9f3b4/

I hope this works out for you.

Best regards,
- Flemming



Hey fnl,
>
> i have done same further investigations today. 
>
> I have copied sample/RamFire.java to noppelma/RamFire.java , changed only 
> the package from sample to noppelma and recompiled it with the same command 
> the gui is using:
>
>  javac -deprecation -g -source 1.6 -encoding UTF-8 -classpath 
> /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar:/home/max/robocode/libs/robocode.jar:/home/max/robocode/robots 
> /home/max/robocode/robots/sample/RamFire.java
>
>  javac -deprecation -g -source 1.6 -encoding UTF-8 -classpath 
> /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar:/home/max/robocode/libs/robocode.jar:/home/max/robocode/robots 
> /home/max/robocode/robots/noppelma/RamFire.java
>
>
> I also deleted both .class before and looked if both were regenerated by 
> those commands. They were. The robocode gui is showing both robots; 
> sample.RamFire and noppelma.RamFire. While the robocode engine is only 
> finding the sample.RamFire one.
>
> I tried the same with my Robot: noppelma.TestBot.java
> I copied it to sample.TestBot.java and compiled both with the same 
> command. Again i have the same effect. Gui finding both while the robocode 
> engine is only detecting the sample.TestBot one. I'm really irritated. Is 
> it possible that the robocode engine is only looking in sample?
>
> Here are my outputs. Print of version und robotsdir is programmed from me. 
> Do have any further idea?
>
> Loaded net.sf.robocode.api
> Loaded net.sf.robocode.core
> Loading plugins from /home/max/robocode/libs
> Loaded net.sf.robocode.repository
> Loaded net.sf.robocode.host
> Loaded net.sf.robocode.ui
> Loaded net.sf.robocode.ui.editor
> Loaded net.sf.robocode.battle
> Loaded net.sf.robocode.sound
> Running version is 1.9.2.6
> Robotsdir is /home/max/robocode/robots
> Err> Can't find 'noppelma.RamFire'
> Err> Can't find 'noppelma.TestBot'
> Err> Can't find 'noppelma.SonOfAWolf'
>
>

-- 
You received this message because you are subscribed to the Google Groups "robocode" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.