Classpath problem(?) with NetLogo-Ersatz integration

2014-06-26 Thread Christophe Gragnic
Hi all, I'm trying to play with NetLogo: http://ccl.northwestern.edu/netlogo/ from Picolisp/Ersatz. I managed to create a working .java with an empty NetLogo model, but am stuck at translating this file to Picolisp. The .java is here:

Re: Classpath problem(?) with NetLogo-Ersatz integration

2014-06-26 Thread Christophe Gragnic
On Thu, Jun 26, 2014 at 12:57 PM, Samuel Dennis Borlongan srborlon...@gmail.com wrote: (javaImport org.nlogo.lite.InterfaceComponent) Note the lack of the space in the command javaImport. What may have happened is that the command (java) is invoke with the (null) parameters Import and

Re: Classpath problem(?) with NetLogo-Ersatz integration

2014-06-26 Thread Alexander Burger
Hi Christophe and Samuel, * When running your ersatz/pil, why do I get this: java.lang.UnsupportedClassVersionError: PicoLisp : Unsupported major.minor version 52.0 My guess is that you compiled the .jar with Java 1.6. How can I use the content of the `java` dir with my old Ersatz? You

Re: Classpath problem(?) with NetLogo-Ersatz integration

2014-06-26 Thread Alexander Burger
On Thu, Jun 26, 2014 at 02:58:21PM +0200, Alexander Burger wrote: $ cd ersatz $ ./mkJar Oops, this is a kind of chick-egg problem :) 'mkJar' calls the local 'pil' in that directory, which in turn is based on ErsatzLisp. So if there is no executable version of ErsatzLisp, you should be

Re: Classpath problem(?) with NetLogo-Ersatz integration

2014-06-26 Thread Christophe Gragnic
Thanks. I'm making progress, but I can't figure out how the interop files in the java dir are loaded in Samuel's version. What I do for now is to manually append the files to the `pil` call. I'd like to understand and use the proper way ! -- http://profgra.org/lycee/ (site pro)

Re: Classpath problem(?) with NetLogo-Ersatz integration

2014-06-26 Thread Samuel Dennis Borlongan
Try replacing the picolisp.jar file with the mainline jar. What I usually do is to call mkJar with the original jar, which then builds my version. The problem with my version of the jar is that I've been running Java 8 since the beta existed 6 months ago, so every time I cal mkJarWin, the

Re: Classpath problem(?) with NetLogo-Ersatz integration

2014-06-26 Thread Christophe Gragnic
On Thu, Jun 26, 2014 at 5:54 PM, Samuel Dennis Borlongan srborlon...@gmail.com wrote: Try replacing the picolisp.jar file with the mainline jar. What I usually do is to call mkJar with the original jar, which then builds my version. The problem with my version of the jar is that I've been

Re: Classpath problem(?) with NetLogo-Ersatz integration

2014-06-26 Thread Samuel Dennis Borlongan
You woud need to (load @java/java+.l) to load all the java interoperability functions. Question to the audience: should I then add said function to the ersatz launch script as part of the changes? How do I add it to pil? Another question to the audience: I could replace my jar with the mainline

Subscribe

2014-06-26 Thread Enrique Sánchez
Hello Enrique =?iso-8859-1?Q?S=E1nchez?= petenr...@gmail.com :-) You are now subscribed -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Classpath problem(?) with NetLogo-Ersatz integration

2014-06-26 Thread Samuel Dennis Borlongan
I have now added the ersatz enhancements library to ersatz/pil, and replaced the jar in my branch with mainline (users will now have to mkJar to have a version that has the enhancements). Samuel Dennis R. Borlongan On Fri, Jun 27, 2014 at 8:16 AM, Samuel Dennis Borlongan srborlon...@gmail.com