Search:

Type: Posts; User: Andrew R

Search: Search took 0.12 seconds.

  1. Replies
    12
    Views
    1,826

    [SOLVED] Re: Get path of current executing class

    That's what I want. I will try that right now. (Good morning btw, I need a cup of coffee)

    --- Update ---

    It works. Thanks for the assistance.
  2. Replies
    12
    Views
    1,826

    [SOLVED] Re: Get path of current executing class

    First, for each copy of the program, the class is created in the same directory its .java was saved on. When executing that program from the shell or cmd prompt is has its own runtime, the class...
  3. Replies
    12
    Views
    1,826

    [SOLVED] Re: Get path of current executing class

    the original one is located here: C:\Users\Andrew\Desktop\
    the other three files are located C:\, regardless of their location the javaPath() method on each program continues to return...
  4. Replies
    12
    Views
    1,826

    [SOLVED] Re: Get path of current executing class

    @Norm

    Just for reference:

    private static String javaPath(){
    System.out.print("GENERATION: " + generation + ", JAVA PATH: " + System.getProperty("user.dir") + "\\" +...
  5. Replies
    12
    Views
    1,826

    [SOLVED] Re: Get path of current executing class

    No I haven't. From what I know about package I wouldn't have any need for it. Packages are just to keep collaborating class organized. This program is intended to be "Stand Alone" thus wouldn't be...
  6. Replies
    12
    Views
    1,826

    [SOLVED] Re: Get path of current executing class

    that is just very clever!

    I never thought about that. I'll have to look at the substring() afterwards, it could be very useful.

    I've been looking real hard but its actually much easier way...
  7. Replies
    12
    Views
    1,826

    [SOLVED] Get path of current executing class

    Yall doing good today forum? ~:>

    I've got a question for you.
    I've been through a lot of reading and Google-ing but I haven't been able to find what I need. :((

    The nature of this problem is...
Results 1 to 7 of 7