Calling accessor from outside, but having noSuchMethodError
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I've got a Tableau.java file which contains a Tableau class defined
like this:
==
public class Tableau
{
public int dimension;
public int generations;
public Cell[][] setOfCells;
public Tableau(int n, int s) // this is an accessor
{
setOfCells = new Cell[n][n];
dimension = n;
generations = s;
}
// some methods
}
==
I then need to instantiate a Tableau, in another file; I do it like this:
==
Tableau tableau = new Tableau(n, s); // this is l.41
// other things
==
The problem is that I get, after launching the bytecode,
==
Exception in thread "main" java.lang.NoSuchMethodError: Tableau.<init>(II)V
at userErrorHandling.checkArgsTypesValues(userErrorHandling.java:41)
[etc.]
==
Do you have any solution for this? I can't understand the error: I'm
calling correctly the accessor, which is also public.
Thanks.
- --
Merciadri Luca
See http://www.student.montefiore.ulg.ac.be/~merciadri/
- --
In the land of the blind, the one-eyed man is king.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
iEYEARECAAYFAk2NG8sACgkQM0LLzLt8MhysQACeNlvswOZ4PoNT83LdQyyojGvd
MqkAnj/qkQGfeA9NN1C8jsU5o/ub6/U1
=n1Tc
-----END PGP SIGNATURE-----