well i typed the following code:
package example.hello;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface Hello extends Remote {
String sayHello() throws RemoteException;
}
i named it Hello.java and then typed Server.java and Client.java too
The programs worked fine in my laptop but theyre giving me errors now when i tried to run them on another server.
Im getting around 35 errors, all in Hello.java and all of them say "illegal character" with some characters which look like garbage. Im not sure if this is vi errors or compiler erros.
I ran javac -d
directory Hello.java Server.java Client.java. that is when i got these errors.