constructor problem



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


.



Relevant Pages

  • constructor will not load
    ... i dont understand why i get the cant resolve symbol error. ... Now i have a Patient Class where the constructor exists public Patient(int ...
    (comp.lang.java.programmer)
  • A List by Any Other Name Would Stink as Bad
    ... Whitecoat Rants has just posted a timely article on the use of patient ... blacklists in the ER on his blog under the title "The List." ... I dont doubt most ER docs get some real drug-seekers from time to time, ...
    (alt.support.chronic-pain)
  • Re: Pancreas Transplant?
    ... I dont know how that would work or ... A pancreas transplant makes more sense if you HAVE to have some other organ transplanted as well, such as a liver, which you can't live without. ... Even kidneys, if failing, are generally left alone, and the patient goes on dialysis, which is a PITA, but vital for survival. ...
    (alt.support.diabetes)
  • Re: mandrake 10
    ... > to bad I dont have a job I'd do the same ... Then be patient like the rest of us and wait. ... Jason ...
    (alt.os.linux)