swarm-support
[Top][All Lists]
Advanced

[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: Diego Corredor
Subject: Re: [Swarm-Support] how to config eclipse on linux platform for javaswarm ?the detail configure file.
Date: Thu, 2 Oct 2008 10:12:42 +0200

I hope this is not too late...
 
To Configure javaswarm in Eclipse in linux
 
1.  Right click on the jHeatbugs project and Select Build Path
2.  Choose "Add Libraries"
3.  Choose "User Library" and click "Next"
4.  In the new menu click the "User Libraries..." button
5.  Click on "New"
6.  The name can be javaswarm. (Just to identify it easily)
7.  Uncheck System Library option
8.  Select the library just created and click on "Add JARs" button
9.  Go to the javaswarm "share" folder and select kawa.jar and swarm.jar files
10. Click "OK"
11. Expand the kawa.jar and select "Native Library Location"
12. Click the "Edit" button
13. Click the "External Folder" button
14. Go and select the "lib/swarm" folder in the javaswarm folder.
15. Click "OK" and "OK" again (you should be in the user library window)
16. Make the same from (13 to 16) with the swarm.jar file
17. In the preferences window click "OK" (you should end in the "Add Library" window)
18. Select the javaswarm library just created library and click "Finish"
With future projects, you just have to do the steps 1-3 and 18.
 
Regards,
 
Diego Corredor
 
 
2008/5/22 Pavel Vinogradov <address@hidden>
 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
_______________________________________________
Support mailing list
address@hidden
http://www.swarm.org/mailman/listinfo/support


reply via email to

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