It might work if you put your extra '.jar' file in the './lib/'
directory. I wouldn't say that it's particularly recommended, though.
Jason Bertsche
Senior Software Developer - NetLogo
On 03/27/2014 09:30 AM, Martin Dobiasch wrote:
You are correct about the loading.
My problem is for my extension it is necessary to be on the classpath.
The extension works with several workspaces which need to share
objects. Thus, I use a global object in this workspaces.
To ensure the communication between the workspaces I need to put this
jar on the classpath otherwise it does not work
Thanks,
Martin Dobiasch
On 2014-03-27 15:25, Jason Bertsche wrote:
The Windows installation of NetLogo doesn't appear to be designed to
allow you to change the classpath like that. It really shouldn't be
necessary for you to change it, though. If extension <X> is used in
a model, all files in './extensions/<X>/*.jar' get loaded onto the
classpath dynamically.
Jason Bertsche
Senior Software Developer - NetLogo
On 3/27/2014 5:08 AM, Martin Dobiasch wrote:
Hi,
i need to put a jar file on the classpath in order to make my
extension work.
On Linux this is no problem (just modifying the netlogo.sh)
on Windows however I cant get it to work by modifying the NetLogo
5.0.5.vmoptions file
BUT i can run it using the command line.
The problem is that my jar seems not to get loaded when using the
.vmoptions.
Does anyone know the correct way?
my .vmoptions file:
-Djava.ext.dirs=
-Xfuture
-XX:MaxPermSize=128m
-Xmx512m
-Dfile.encoding=UTF-8
-classpath "D:\NetLogo
5.0.5\extensions\mapreduce\mapreduce.jar;D:\NetLogo 5.0.5\NetLogo.jar"
The command I'm using (works):
D:\NetLogo 5.0.5>jre\bin\java.exe -classpath "D:\NetLogo
5.0.5\extensions\mapreduce\mapreduce.jar;D:\N etLogo
5.0.5\NetLogo.jar" org.nlogo.app.App H:\MR\Pi.nlogo
Thanks,
Martin
--
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.