Results 1 to 8 of 8

Thread: Code location *resolved*

Threaded View

  1. #1

    Thread Starter
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Code location *resolved*

    Is there any way I can find the load base of a class in Java? E.g. I have the class
    com.cornedbee.Freaky
    and the class file is located at
    c:\java\classes\com\cornedbee\Freaky.class
    that I get
    c:\java\classes\
    ?

    I desperatly need this, or another way to have a uniform way of locating my resource files without passing parameters to my app.

    [EDIT: Kind of resolved. I can't get the location of my class file, but I can load things from there using ClassLoader.getResource. ]
    Last edited by CornedBee; Jan 7th, 2004 at 05:30 AM.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width