Search:

Type: Posts; User: j831526

Search: Search took 0.10 seconds.

  1. Replies
    6
    Views
    6,605

    Re: Cannot find class in same package

    Bingo!!
    Added package_play to java command & it works.
    Norm, thanx for staying with this with your help
    ... Charlie
  2. Replies
    6
    Views
    6,605

    Re: Cannot find class in same package

    Forgot to mention I'm on a Mac. Here's a recap:


    package package_play; # File name PP.java

    public class PP {
    public static void main(String[] argv) {
    Flubber f = new Flubber("Hi...
  3. Replies
    6
    Views
    6,605

    Re: Cannot find class in same package

    The CLASSPATH is not set. The default is supposed to default to the current directory which is the directory containing both files.
  4. Replies
    6
    Views
    6,605

    Cannot find class in same package

    package 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");
    ...
Results 1 to 4 of 4