[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swarm-Support] how to config eclipse on linux platform for javaswar
From: |
Pavel Vinogradov |
Subject: |
Re: [Swarm-Support] how to config eclipse on linux platform for javaswarm ?the detail configure file. |
Date: |
Fri, 23 May 2008 00:41:10 +0500 |
Hello Beyier.
Java version of Swarm use JNI to access objc-Swarm, therefore
swarm.jar it is not enough to run heatbug demo.
To run heatbug (or any other swarm java application) you must point
java.library.path to jvm. For IDE you must point new VM parameter
-Djava.library.path=<path to swarm lib*.so libraries>
I don't sure that this enough because i can't check this yet, but
using of this parameter allow me to avoid UnsatisfiedLinkError
exception.
2008/5/9 beyier wang <address@hidden>:
> So I want to program in eclipse IDE, and follow your ariticle how to install
> and use javaswarm in eclispe, I configure some environment variable
> SWARMHOME and PATH that in my ./.bashrc and /etc/environment file on
> ubuntu. And add the swarm.jar as well as kawa.jar to the project classpath(
> lib in java buildpath) from /Swarm-2.2-java/share/swarm/. But
> unfortunately, when I run the project(I am familiar with eclipse and java,so
> no other errors), the console in eclipse gives the error message as:
>
> 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 net.beyi.StartHeatbugs.main(StartHeatbugs.java:15)
--
Pavel Vinogradov
NixDev.Net, Senior Linux Developer