Women in Technology

Hear us Roar



Article:
  Making Java Objects Comparable
Subject:   package
Date:   2003-03-15 14:24:32
From:   anonymous2
Should i be supprised that Windows jkd1.4 doesn't like "package comparable.ex03;"


It complains about the "." in the package name and wants a semi-colon. Or am i doing something wrong?

Full Threads Newest First

Showing messages 1 through 1 of 1.

  • package
    2003-03-18 01:48:37  jczeus [View]

    Perhaps you didn't create the directories: it's important that you create comparable\ex03\ in a directory that's in your CLASSPATH and put the two sourcefiles there.
    Then execute
    javac comparable\ex03\Testing.java
    and
    java comparable\ex03\Testing
    and it should work okay.