You may be able to work around your problem by starting your program with
the "working directory" set to NetLogo's home folder.  In earlier versions
of NetLogo this was strictly necessary, but I think the environment
variables are supposed to alleviate that issue.

Cheers,

Dr. Forrest Stonedahl
Assistant Professor of Computer Science
Augustana College

website:  http://forrest.stonedahl.com/


On Mon, Jul 11, 2016 at 3:56 AM, <[email protected]> wrote:

> On Saturday, 9 April 2016 19:01:47 UTC+1, itsaquestion2008  wrote:
> > Hi everyone!
> >
> >
> >  I'm trying to control NetLogo in eclipse.
> >
> >
> > According to the controlling api manual (
> https://github.com/NetLogo/NetLogo/wiki/Controlling-API) :
> >
> >
> > 1. NetLogo.jar was imported to the build path, so "import
> org.nlogo.app.App;" is ok.
> >
> >
> > 2. When I ran the program directly pasted from the manual, console shows:
> > "java.io.FileNotFoundException: models/Sample Models/Earth
> Science/Fire.nlogo (No such file or directory)"
> >
> >
> > 3. Then I added environment variable in "Run Configurations".(I'v
> removed the space in the path, as the actual path in my disk)
> >
> >
> >
> > 4. But still get the same error in 2.
> >
> >
> > Can somebody  help? Thanks.
>
> Hi,
>
> You can try 1 of 2 things.
>
> Place them in Arguments: Program arguments of run configurations instead
> of where you are.
>
> or
>
> Add these files to the project file where the java program is.
>
> --
> You received this message because you are subscribed to the Google Groups
> "netlogo-devel" 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.
>

-- 
You received this message because you are subscribed to the Google Groups 
"netlogo-devel" 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.

Reply via email to