constructor problem
- From: "Irlan agous" <irlan345@xxxxxxx>
- Date: Sun, 12 Jun 2005 09:32:37 +0200
Hello, i dont understand why i get the cant resolve symbol error.
I want to start an RMI server here.
import java.rmi.*;
import java.rmi.server.*;
public class PatientServer
{
public static void main(String[] args)
{
try
{
if (System.getSecurityManager() == null)
{
System.setSecurityManager ( new RMISecurityManager());
}
Patient p = new Patient(); //////// the constructor
System.out.println("Binding...");
Naming.bind("PatientServer", p);
System.out.println("PatientServer is ready...");
}
catch (Exception e)
{
e.printStackTrace();
}
}
}
Now i have a Patient Class where the constructor exists public Patient(int
patientNummer). So i dont understand why it will not initialize the
constructor. Patient.Class exists in the same package. I get this error
always: symbol : constructor Patient ()
location: class sapa.Patient
sapa.Patient p = new Patient();
Can somebody help me please. Even i want to send the code, and you can take
a look, also for payment if neccesary, becouse i cant get it to work and i
want to learn it so badly,
Thanks in advance
Irlan
.
- Follow-Ups:
- Re: constructor problem
- From: Raymond DeCampo
- Re: constructor problem
- Prev by Date: Hashtable q
- Next by Date: Re: constructor problem
- Previous by thread: Hashtable q
- Next by thread: Re: constructor problem
- Index(es):
Relevant Pages
|