|
From: | Paul E Johnson |
Subject: | Re: javacswarm not found |
Date: | Fri, 04 Oct 2002 10:50:14 -0500 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020918 |
Li An wrote:
Dear Paul,Let's go back to the two steps and report what I found from my runs (if you got an email similar to this but incomplete, simply ignore that one).
*$ ./heatbugs*Then the Swarm model was *_running well_!
Good!The following indicates to me that your jdk is not installed in the way I/the RPM expect. DO you see the same as I do here:
$ ls -la /usr/local/j2sdk1.4.0/ total 10087 drwxr-xr-x 8 root root 1024 Oct 20 2001 ./ drwxr-xr-x 26 root root 1024 Oct 1 15:28 ../ drwxr-xr-x 2 root root 1024 Oct 20 2001 bin/ -r--r--r-- 1 root root 1512 Oct 20 2001 COPYRIGHT drwxr-xr-x 6 root root 1024 Oct 20 2001 demo/ drwxr-xr-x 3 root root 1024 Oct 20 2001 include/ drwxr-xr-x 5 root root 1024 Oct 20 2001 jre/ drwxr-xr-x 2 root root 1024 Oct 20 2001 lib/ -r--r--r-- 1 root root 10690 Oct 20 2001 LICENSE drwxr-xr-x 4 root root 1024 Oct 20 2001 man/ -r--r--r-- 1 root root 3359 Oct 20 2001 README -r--r--r-- 1 root root 10485 Oct 20 2001 README.html -rw-r--r-- 1 root root 10249492 Oct 20 2001 src.zip
Step 2. Then I considered the java side...(1) I went to _ftp://ftp.swarm.org/pub/swarm/apps/java/sdg/testing_ and downloaded jhgeatbugs-2001-03-28.tar.gz into /home/anli/apps/. (2) I untared and unzipped jhgeatbugs-2001-03-28.tar.gz by using tar zcvf jhgeatbugs-2001-03-28.tar.gz and a directory "jhgeatbugs-2001-03-28" was automatically created. Then I entered this directory "jhgeatbugs-2001-03-28".(3) in this directory I did the following: *$ export SWARMHOM*E*=/usr *(nothing came out) *$ make*/usr/bin/javacswarm Heatbug.java HeatCell.java HeatSpace.java HeatbugModelSwarm.java HeatbugObserverSwarm.java StartHeatbugs.java HeatbugBatchSwarm.javaFound 2 System errors and issued 1 warning: ***Error: could not find package "java/util" in . /usr/share/swarm/swarm.jar /usr/local/j2sdk1.4.0/jre/lib/rt.jar .*** Warning: The file " /usr/local/j2sdk1.4.0/jre/lib/rt.jar" is not a valid zip file*** Error: could not find package "java/lang" in . /usr/share/swarm/swarm.jar /usr/local/j2sdk1.4.0/jre/lib/rt.jar . make: ***[all] error 1. *$ javaswarm StartHeatbugs*/usr/bin/javaswarm: /usr/local/j2sdk1.4.0/jre/bin/java: No such file or directory.(4)) last, I did the following: *$ eval javaswarm *_JAVASWARM_LIBPATH="/usr/lib/swarm::/usr/local/j2sdk1.4.0/jre/lib/" LD_LIBRARY_PATH="/usr/lib:/usr/lib/swarm:/usr/X11R6/lib:" CLASSPATH=".:/usr/share/swarm/swarm.jar:/usr/Share/swarm/kawa.jar:/usr/local/j2sdk1.4.0/jre/lib/rt.jar:" export _JAVASWARM_LIBPATH LD_LIBRARY_PATH CLASSPATH *$ rpm -qa | grep swarm *swarm-2.1.140.20020514-1 swarm-jdk-2.1.140.20020514-1 swarm-static-2.1.140.20020514-1 swarm-gcjswarm-2.1.140.20020514-1 Hope this can help to detect the problem. Thank you very much. Li An
-- Paul E. Johnson email: address@hidden Dept. of Political Science http://lark.cc.ku.edu/~pauljohn 1541 Lilac Lane, Rm 504 University of Kansas Office: (785) 864-9086 Lawrence, Kansas 66044-3177 FAX: (785) 864-5700 ================================== Swarm-Support is for discussion of the technical details of the day to day usage of Swarm. For list administration needs (esp. [un]subscribing), please send a message to <address@hidden> with "help" in the body of the message.
[Prev in Thread] | Current Thread | [Next in Thread] |