swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swarm-Support] Swarm Java, Eclipse and Mac OS X


From: Bill Northcott
Subject: Re: [Swarm-Support] Swarm Java, Eclipse and Mac OS X
Date: Mon, 27 Jun 2005 11:33:06 +1000

On 24/06/2005, at 7:50 PM, Thomas Louail wrote:
I am a french student developping a ecological simulation platform with swarm java. I recently installed the swarm packages on my mac OS X and wished to write my model code under eclipse. So after installing the various packages, I created a new Java Eclipse Project, add the kawa.jar and swarm.jar archives to the classpath, add the javacswarm builder to the builders section and I set the SWARMHOME, PATH and DISPLAY environment variables to their values. Then I copied the jSwarmBug tutorial code in my empty project and tried to run it. At this point the following error message printed on the screen :
Exception caught: no javaswarm in java.library.path
Exception in thread "main" java.lang.UnsatisfiedLinkError: createBegin
    at swarm.SwarmEnvironmentCImpl.createBegin(Native Method)
    at swarm.Globals.<clinit>(Globals.java:39)
    at StartSimpleBug.main(StartSimpleBug.java:25)

First, I have not tried to build a Java Swarm model and run it out of Eclipse.

Can you build a run a java example from a Terminal shell as in the documentation?

If you can, then my guess would be that you are not finding the jnilibrary ($SWARMHOME/lib/libjavaswarm.jnilib) at run time.

Have look at the javaswarm script and see if you have all the environment it sets up defined within Eclipse.

Bill Northcott



reply via email to

[Prev in Thread] Current Thread [Next in Thread]