Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Replies
    6
    Views
    6,605

    Re: Cannot find class in same package

    The full class name includes the package name: package_play.PP

    java -cp ../ package_play.PP
  2. Replies
    6
    Views
    6,605

    Re: Cannot find class in same package

    Use the javac command option: -cp to set the classpath for the compile step.
    The path to the class file should be <classpath><package>
    For example if the path to the class file is =...
  3. Replies
    6
    Views
    6,605

    Re: Cannot find class in same package

    When compiling and executing the class file package folder must be on the classpath. The classpath must point to the folder holding the package_play folder.

    Copy and paste here the contents of the...
Results 1 to 3 of 3