swarm-support
[Top][All Lists]
Advanced

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

[Swarm-Support] Eclipse and java.library.path problem


From: Jan Peters-Anders
Subject: [Swarm-Support] Eclipse and java.library.path problem
Date: Wed, 14 May 2003 16:29:19 +0200
User-agent: KMail/1.5

Hello all,

at the moment I am trying to figure out what is wrong with my Eclipse 
installation. If anyone has experience with Eclipse I'd appreciate any help. 
The problem is: when I try to run a Swarm Java program from within Eclipse, 
most of the time (suprisingly not with the Kenge code of Paul Box) I get the 
following error: 

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:21)

I tried everything I found on the web concerning java.libray.path, including 
copying the swarm executables to the jre/bin directory or handing the 
-Djava.library.path to the VM (although it was not quite clear from the 
internet sources whether to put the javaswarm executable or some other 
directories (xxxx.so etc.) in the path.
I am using Eclipse 2.1, j2sdk1.4.1_02, swarm-2.1.141.20021019, Slackware 8.1, 
my path variables are as follows:

CLASSPATH=.:/home/jan/swarm-2.1.141/share/swarm/swarm.jar:/home/jan/swarm-2.1.141/bin:/usr/lib/j2sdk1.4.1_02/jre/lib/rt.jar

PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/local/bin:/opt/www/htdig/bin:/usr/lib/j2sdk1.4.1_02/jre/bin:/usr/lib/j2sdk1.4.1_02/bin:/opt/kde/bin:/opt/kde/bin:/usr/lib/qt-3.1.2/bin:/home/jan/swarm-2.1.141/bin:.:/opt/www/htdig/bin:/usr/lib/j2sdk1.4.1_02/jre/bin:/usr/lib/j2sdk1.4.1_02/bin:/opt/kde/bin:/opt/kde/bin:/usr/lib/qt-3.1.2/bin:.

Don't worry about the direct pointing to the jar files, I also tried giving 
just the directories.  I also tried another tutorial, jSimpleBug, and in the 
shell it runs perfectly. BTW: all swarm executables are found within the 
shell, I can compile with jikes, do make with the examples and so on (oh yes, 
jheatbugs and jmousetrap give errors) I also tried to run simple java 
programs and they work, too. I think this is kind of strange. Could it be a 
problen with my j2sdk? I found on the web that only 1.3 is officially 
supported, but then: why is Kenge running without any problems. 

Thanks again

Jan Peters-Anders


reply via email to

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