swarm-support
[Top][All Lists]
Advanced

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

Re: javacswarm not found


From: Li An
Subject: Re: javacswarm not found
Date: Fri, 04 Oct 2002 15:25:29 -0400

Yeah, my jdk is installed in /home/anli/downloads and actually, it is jdk1.4.1 (not jdk1.4.0). So when I typed $ ls -la /usr/local/j2sdk1.4.1/, it says no such file or directory. When I typed $ ls -la /home/anli/dowbloads/j2sdk1.4.1/, the following came out.

drwxr-xr-x    9 root     root         4096 Sep 26 20:33

drwxr-xr-x    3 root     root         4096 Oct  4 14:54

drwxr-xr-x    2 root     root         4096 Aug 29 05:15 bin

-r--r--r--    1 root     root         4431 Aug 29 05:14 COPYRIGHT

drwxr-xr-x    6 root     root         4096 Aug 29 05:14 demo

drwxr-xr-x    3 root     root         4096 Aug 29 05:14 include

drwxr-xr-x    5 root     root         4096 Aug 29 05:13 jre

drwxr-xr-x    2 root     root         4096 Aug 29 05:14
lib
-r--r--r--    1 root     root        16994 Aug 29 05:14 LICENSE

drwxr-xr-x    4 root     root         4096 Aug 29 05:15 man

-r--r--r--    1 root     root         8729 Aug 29 05:14 README

-r--r--r--    1 root     root        15639 Aug 29 05:14 README.html

-rw-r--r--    1 root     root     10568947 Aug 29 05:14 src.zip

drwxr-xr-x    2 root     root         4096 Sep 26 20:33 .systemPrefs

Question?
(1) Should I uninstall j2sdk1.4.1 from /home/anli/downloads and install it to /usr/local? (2) in your swarm codes, do you reference j2sdk1.4.0 rather than j2sdk1.4.1? If so, shall I simply rename the directory j2sdk1.4.1 to j2sdk1.4.0 while keeping the components unchanged, or download and install 1.4.0 version into /usr/local?

Thanks,

Li

At 10:50 AM 10/4/2002 -0500, you wrote:
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.java
Found 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.


                 ==================================
  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.



reply via email to

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