swarm-support
[Top][All Lists]
Advanced

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

Problem on using Java on Swarm-2.1.1


From: Jason Miu
Subject: Problem on using Java on Swarm-2.1.1
Date: Tue, 22 Jan 2002 19:43:03 +0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011226

Hi all,

I am a newbie for the Swarm (and also the Agent Based Modeling). Yesterday I downloaded the Swarm 2.1.1 source code and compile it on my box. My system config as below:

Intel P4 cpu
Mandrake Linux 8.0 (with kernel 2.4.10)
Gnu GCC 2.96
java version "1.3.1"  (JDK 1.3.1)
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)

       OK, after unpack the source I type:

# ./configure --with-jdkdir="/usr/java/jdk" # make
# make install

Fainlly the compilation was successful (not very smooth.... need a lot of hand fixs...). Then my SWARMHOME was setted to "/usr/local" (ie. default).

I've downloaded the swarmapps-2.1.1.tar.gz for testing the ObjC part of Swarm. The code can be compiled and run without problem.

However, when I try to test the Java part with jheatbugs-2.1, it fail. It can't be compiled. I 've tried following ways:

(1)   # make

/usr/local//bin/javacswarm Heatbug.java HeatCell.java HeatSpace.java HeatbugModelSwarm.java HeatbugObserverSwarm.java StartHeatbugs.java HeatbugBatchSwarm.java
Heatbug.java:7: cannot resolve symbol
symbol : class Grid2d location: package space
import swarm.space.Grid2d;
                  ^
Heatbug.java:8: cannot resolve symbol
symbol : class Grid2dImpl location: package space
import swarm.space.Grid2dImpl;

......... 100 errors... seems all are "cannot resolve symbol"

(2) # javac -classpath "./:/usr/local/share/:/usr/java/jdk /jre/lib/rt.jar" *java

HeatbugBatchSwarm.java:6: cannot resolve symbol
symbol : class Globals location: package swarm
import swarm.Globals;
            ^
HeatbugBatchSwarm.java:7: cannot resolve symbol
symbol : class Selector location: package swarm
import swarm.Selector;

.............. 100 erros also...... "cannot resolve symbol" too...


       Do I set anything wrong or I miss something? Thanks in advance

       Sorry for such a long mail........
Best regards, Jason Miu, CUHK



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