[Solved] how to correctly compile java files with javac? [duplicate]


The compilation was correct.

However, your main class is placed in a package.

This is because of the first line of ServerOperation.java:

package com.mkyong.rmiserver;

In order to run the program, you have to include the package while running main class. That means you have to navigate to the root of package/directory (in this case, just before com folder).

While there type:

$ java com.mkyong.rmiclient.ServerOperation

0

solved how to correctly compile java files with javac? [duplicate]