samedi 16 juillet 2016

Java - Error: Could not find or load main class java

I've just wanted to ask you if you got idea how to solve this issue. I'm totally new to Java RMI, and still messed with this whole thing.

I've got error when i try to run my Test class. ("Error: Could not find or load main class java")

Also I've set VM arguments to "java -Djava.security.policy=java.policy Test"

Here's my Test class:

public class Test {

    @SuppressWarnings("unused")
    public static void main(String[] args) {        
        int port = 5000;
        MessageBox<String> buffer = new ClientRMIMessageBox<>("127.0.0.1", port);
        Put put = new Put(buffer);
        Get get = new Get(buffer);
    }

}

java.policy: grant {permission java.security.AllPermission;};

Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire