I compile Flubber.java running javac from package_play directory - no problempackage package_play; // file name is PP.java in package_play directory public class PP { public static void main(String[] argv) { Flubber f = Flubber("Hi fool"); System.out.println(f.msg); } } // file name is Flubber.java in package_play directory package package_play; public class Flubber { String msg; Flubber(String x) { msg = x; } }
I then compile PP.java running javac from package_play directory - error: cannot find Flubber
I must be missing something basic. CLASSPATH is not set. My understanding is it will default to current directory.
Thanx for any suggies - oh, please don't suggest I use your favorite IDE instead of the command line