swarm-support
[Top][All Lists]
Advanced

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

Java runtime error


From: Charles Staelin
Subject: Java runtime error
Date: Wed, 16 Feb 2000 16:00:17 -0500

As I pick away at the Simplebug tutorial & Java, I've run
into a problem and two questions.

The problem is the following runtime error:

//Hannah/.../simpleBug2 $ javaswarm StartSimplebug
java.lang.UnsatisfiedLinkError: Failed to locate native
function:
swarm/space/Discrete2dImpl.putValue$atX$Y(III)Ljava/lang/Obj
ect;
        at StartSimplebug.main(StartSimplebug.java:23)

The getValueAtX$Y method in the line above (sources are
attached) is found (I assume).  Why not putValue$atX$Y?

The first question is about the Java documentation.
putValue$atX$Y is specified to have arguments (long v, int
x, int y).  However, when I specify a long integer (e.g..
0L) rather than an int for the first argument the compiler
chokes, and I note that jheatbugs also uses an int for the
first argument.  Is this an error in the docs, or a
misunderstanding on my part?

The second question relates to the sources.  I downloaded
the Swarm source library, but don't see in it the Java
interfaces.  Where can I find those?

Many thanks,
Charles

--------------------------------------------------------
Charles Staelin                email: address@hidden
Department of Economics
Smith College                  phone: (413) 585-3621
Northampton, MA 01063            fax: (413) 585-3393
--------------------------------------------------------

Attachment: FoodSpace.java
Description: Binary data

Attachment: Simplebug.java
Description: Binary data

Attachment: StartSimplebug.java
Description: Binary data


reply via email to

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