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
> Now i have a Patient Class where the constructor exists public Patient(int
> patientNummer).
Here you indicate that the constructor for the Patient class requires an
integer.
> 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();
Here you have attempted to use a no-argument constructor of the Patient
class, which apparently does not exist. You must pass an integer to the
Patient constructor.
> 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
[quoted text clipped - 3 lines]
>
> Irlan
HTH,
Ray

Signature
XML is the programmer's duct tape.