Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    6
    Views
    814

    Re: Get location of main class file on disk

    The call to getResource could be done from the class that wants to know its location. It wouldn't need to be in a separate class.
    If the class files are in a jarfile then there could be a problem.
  2. Replies
    6
    Views
    814

    Re: Get location of main class file on disk

    What I meant to describe was how code in a class file would find the directory the class file is located in. I assumed that is what you were asking.
    A combination of the path to the directory where...
  3. Replies
    6
    Views
    814

    Re: Get location of main class file on disk

    For the java program to execute a class file, the file needs to be on the path referenced by the package/classpath.
    If the java program uses a custom classloader then I imagine the class file could...
Results 1 to 3 of 3