[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Swarm-gcj does work on Redhat 8.0
From: |
Paul E. Johnson |
Subject: |
Swarm-gcj does work on Redhat 8.0 |
Date: |
Tue, 28 Jan 2003 15:18:30 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003 |
I just installed the swarm and swarm-gcjswarm rpms I built along with
the gcc and gcj rpms I built for RH8 on a clean machine.
Then I downloaded the jheatbugs
ftp://ftp.swarm.org/pub/swarm/apps/java/sdg/testing/jheatbugs-2001-03-28.tar.gz
and in that directory I succeed in compiling jheatbugs with these commands.
I mean these commands exactly.
$ export LD_LIBRARY_PATH=/usr/lib/swarm:$LD_LIBRARY_PATH
$ CLASSPATH=/usr/share/swarm/swarm.jar:$CLASSPATH gcj -O2 -g
--main=StartHeatbugs -o model *.java /usr/lib/swarm/gcjswarm.so
I see no error messages, the file "model" appears in my directory.
and to run the model:
$ ./model
I can't say what's going wrong with your makefile approach you describe
below, all I can say is the way I wrote it above does work for me.
Xiaorong Xiang wrote:
I made a makefile modified from the Makefile coming with the heatbug
package:
---------------------------------------------------------------
JAVA_SRC = Heatbug.java HeatCell.java HeatSpace.java
HeatbugModelSwarm.java HeatbugObserverSwarm.java StartHeatbugs.java
HeatbugBatchSwarm.java
StartHeatbugs: $(JAVA_SRC)
gcj -O2 -g --main=StartHeatbugs -o StartHeatbugs $(JAVA_SRC)
/usr/lib/swarm/gcjswarm.so
clean:
rm -f *.class
-------------------------------------------------------------------------
When I compile the code without only change, the compiler cannot recognize
the comments at the beginning of each .java file, so I delete the
comments. Then the errors are what I told you before.
The environment I set is following:
------------------------------------------------------------------------
CLASSPATH=.:/usr/share/swarm/swarm.jar:/home/xxiang1/oc4j/j2ee/home/lib/servlet.jar:/home/xxiang1/oc4j/j2ee/home/oc4j.jar:/home/xxiang1/oc4j/jdbc/lib/classes12dms.jar
LD_LIBRATY_PATH=/usr/lib/swarm
-----------------------------------------------------------------------
--
Paul E. Johnson email: address@hidden
Dept. of Political Science http://lark.cc.ukans.edu/~pauljohn
University of Kansas Office: (785) 864-9086
Lawrence, Kansas 66045 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-gcj does work on Redhat 8.0,
Paul E. Johnson <=
- Multithreading question, Darold Higa, 2003/01/28
- Re: Multithreading question, gepr, 2003/01/29
- RE: Multithreading question, Darold Higa, 2003/01/29
- RE: Multithreading question, gepr, 2003/01/29
- RE: Multithreading question, gepr, 2003/01/29
- RE: Multithreading question, Bill Northcott, 2003/01/29
- Re: Multithreading question, Marcus G. Daniels, 2003/01/30
- Performance issues, Bill Northcott, 2003/01/30
- Re: Performance issues, Marcus G. Daniels, 2003/01/31
- Re: Performance issues, Steve Railsback, 2003/01/31