Search:

Type: Posts; User: andbin

Search: Search took 0.23 seconds.

  1. [SOLVED] Re: Extracting Eclipse project as runnable java isn't working

    Everywhere you want, outside the jar. Obviously in a location that is appropriate/reasonable.
    You can use a "known" location, for example under the "home" directory of the user. It's easily...
  2. [SOLVED] Re: Extracting Eclipse project as runnable java isn't working

    "Resources" (in the sense intended by getResource/getResourceAsStream) are read-only. There's no equivalent to write a resource!

    And, in general, you should not try to update the content of a jar....
  3. [SOLVED] Re: Extracting Eclipse project as runnable java isn't working

    This is a pathname on the local file-system (and it has nothing to do with "resources" into the jar). And it's an absolute path. On Windows it is resolved to e.g. C:\data\adminData.txt (or what is...
  4. [SOLVED] Re: Extracting Eclipse project as runnable java isn't working

    This is technically correct, for what I see here.


    If you mean the creation/write of a file on the local file-system .... it's another thing. It has no (direct) relation to "resources".


    ...
  5. [SOLVED] Re: Extracting Eclipse project as runnable java isn't working

    First, you must use '/' as separator. That is not a "pathname" on file-system .... it's a resource specification! It's a different, more specific, thing. Javadoc documentation precisely states this....
  6. [SOLVED] Re: Extracting Eclipse project as runnable java isn't working

    For what I see here, a resource specification "/images/indaSupport.png" should work.
    Does it work? Or not?
  7. [SOLVED] Re: Extracting Eclipse project as runnable java isn't working

    Yes, conceptually it would be correct!

    Now .... I have a doubt: that Eclipse doesn't know how to handle those LoginSystemSource folder. May be that Eclipse doesn't copy all non-java files to the...
  8. [SOLVED] Re: Extracting Eclipse project as runnable java isn't working

    Sorry, it's not clear. If you have used Eclipse, your project should have an "src" folder. Is your LoginSystemSource the Eclipse source folder? (it would be strange).

    If you had for example:

    ...
  9. [SOLVED] Re: Extracting Eclipse project as runnable java isn't working

    Did you understand the concept? I guess of no.
    Where are those images? In which package?
  10. [SOLVED] Re: Extracting Eclipse project as runnable java isn't working

    Here you have used the concept of "resource". But a resource specification that starts with '/' means that the name is "absolute" starting from the classpath "root". So, do you have a top level...
  11. [SOLVED] Re: Extracting Eclipse project as runnable java isn't working

    I guess/imagine you have done a thing like:

    .... ImageIO.read(new File("someimage.png"))

    or similar concept.

    Well, "someimage.png" is a specification on the local file-system and, more...
Results 1 to 11 of 11