This compiles and runs fine:
import client.Stuff;
import static client.Stuff.*;
import static java.lang.System.out;
class User {
public static void main(String [] args){
new User().go();
}
void go(){out.println( doStuffi(MY_CONSTANT) );}
In another file:
package client;
public class Stuff{
public static int doStuffi(int x){return (x++)*x; }
public static final int MY_CONSTANT=5;
}
From the parent directory of client (where I have User.class), I simply ran this as follows:
java User //no need to use -cp because I am in a folder that contains client folder