Search:

Type: Posts; User: loui345

Search: Search took 0.16 seconds.

  1. Re: Really having trouble making jar files work with pictures

    Can you please point into a direction where I could learn to do this. I am glad that I know the problem. I am unsure on how to do this. In this situation, is getClassLoader method applicable?
  2. Re: Really having trouble making jar files work with pictures

    Hi Norm,

    Okay now it makes sense. Your last explanation clarifies a lot. I did not realize that it was in two parts. A classpath and class path. I was thinking it was all together. How do this? ...
  3. Re: Really having trouble making jar files work with pictures

    Hi Norm,

    The reason why I was putting the File object into the argument is because I thought I was instructing the getResource method to look into the folder"C:\\Test". I assumed File object was a...
  4. Re: Really having trouble making jar files work with pictures

    Hi Norm,

    Thank you for working with me in this matter.

    Okay, the path that I am using for my picture is: (C:\\Test\\"nameoffile.png"). Now, I know that this works as I had sucess following your...
  5. Re: Really having trouble making jar files work with pictures

    Man, I had it working perfectly,I moved a few things around, now it does not work, and I cannot make it work again. I thought I understood perfectly and as it turns out I do not.

    I understand...
  6. Re: Really having trouble making jar files work with pictures

    Hi Norm,

    You nailed it. That was the problem I was having. I learned a lot from this. The program is working perfectly. I would not have figured that out without this community. I greatly...
  7. Re: Really having trouble making jar files work with pictures

    Norm,

    If I type out system.out.println(f), it shows the path with the extension of the file png, and I am also typing in the constructor the "png" could this cause a problem? if so, how do I fix...
  8. Re: Really having trouble making jar files work with pictures

    Hi,

    I attempted to do as you suggested still with no success. Before trying it, I thought it would def. work. Wondering why it is not working!!!

    Here is the code I tried it's only two lines...
  9. Re: Really having trouble making jar files work with pictures

    Hi, Curmudgeon,

    The images are not held in the jar file. They're added as time goes. As an example, say I find a knew item i am looking to sell and I would like to add it to my already compiled...
  10. Re: Really having trouble making jar files work with pictures

    sorry, curmudgeon, I am n00b when you say "command line" do you mean the cmd prompt? My Jar file name is business.jar, so where would I type that in at?

    Also, there should be no images...
  11. Really having trouble making jar files work with pictures

    Hello,

    Quick question, I created a program for my small business. The program displays the image of the product i sell overseas. It works perfectly until I put it into a Jar file. See the...
Results 1 to 11 of 11