Page 2 of 2 FirstFirst 12
Results 21 to 36 of 36
  1. #21
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,267
    Rep Power
    25

    Default

    That was his translating the Cerrar to close.
    When you say "the same location" do you mean in the jar file?
    Can you open a command prompt window, change to the directory with the jar file and enter:
    jar -tf <YOURJARFILENAME>.jar

    Copy and paste the console here.
    To copy the contents of the command prompt window:
    Click on Icon in upper left corner
    Select Edit
    Select 'Select All' - The selection will show
    Click in upper left again
    Select Edit and click 'Copy'

    Paste here.

    Here is what I get:
    D:\JavaDevelopment>jar -tf acme.jar
    META-INF/INDEX.LIST
    META-INF/
    META-INF/MANIFEST.MF
    printScreenListener.class
    Acme/IntHashtable.class
    Acme/IntHashtableEntry.class
    Acme/IntHashtableEnumerator.class
    Acme/JPM/Encoders/GifEncoder.class
    Acme/JPM/Encoders/GifEncoderHashitem.class
    Acme/JPM/Encoders/ImageEncoder.class
    Acme/ReadMe.txt

    D:\JavaDevelopment>

  2. #22
    mad72584 is offline Member
    Join Date
    Aug 2011
    Location
    Bogotá
    Posts
    28
    Rep Power
    0

    Default

    mmm no, I don't know to do that. How can I do it?

  3. #23
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,267
    Rep Power
    25

    Default

    I don't know to do that
    If you are asking about the command prompt window look at your posts 6 and 9

  4. #24
    mad72584 is offline Member
    Join Date
    Aug 2011
    Location
    Bogotá
    Posts
    28
    Rep Power
    0

    Default

    I asked about Fubarable's reply at the same time you replied.
    I mean that the image is in the same location than the other images which work
    This apears:

    Microsoft Windows [Versión 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. Reservados todos los derechos.

    C:\Users\Administrador>prompt window:

    window:jar -tf Esta.jar
    "jar" no se reconoce como un comando interno o externo,
    programa o archivo por lotes ejecutable.

    window:
    This means:
    "jar" is not recognized as an internal or external command,
    program or batch file.
    Last edited by mad72584; 08-06-2011 at 09:04 PM.

  5. #25
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,267
    Rep Power
    25

    Default

    The jar command is in the same folder as the javac command.
    On windows many people have set the PATH environment variable to point to that folder so that the OS can find all the JDK tools that are in that folder.

    For example:
    D:\Java\jdk1.7.0\bin\jar.exe

  6. #26
    mad72584 is offline Member
    Join Date
    Aug 2011
    Location
    Bogotá
    Posts
    28
    Rep Power
    0

    Default

    "jar.exe" is in that folder. What do I have to do now? I have little knowledge about PATH.

  7. #27
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,267
    Rep Power
    25

    Default

    What we're trying to do is verify the contents of the jar file. You need to be sure the image file is in the jar file.
    Try using a zip utility to open the jar file and visually verify the the image file is there, that the path and name are the same as you have in the program.
    If you need to, you could rename the jar file by adding .zip to the end of the filename so the zip utility would automatically be called when you clicked on the file.

  8. #28
    mad72584 is offline Member
    Join Date
    Aug 2011
    Location
    Bogotá
    Posts
    28
    Rep Power
    0

    Default

    I've unziped the jar and apear three folders:

    esta
    Imágenes
    META-INF

    and inside Imágenes, the image Cerrar.png is.

  9. #29
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,267
    Rep Power
    25

    Default

    If the files are as you say and the image is good, then I have no more suggestions.

  10. #30
    mad72584 is offline Member
    Join Date
    Aug 2011
    Location
    Bogotá
    Posts
    28
    Rep Power
    0

    Default



    thanks you Norm, you has helped me a lot in this post and the other one. I'll be waiting for a time in this post. Thanks.

  11. #31
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    One option is for you to change your .jar file to a .zip file (just by changing the file extension), and then uploading it here so we could look at it. If it's reasonable size, we may be able to help you.

  12. #32
    mad72584 is offline Member
    Join Date
    Aug 2011
    Location
    Bogotá
    Posts
    28
    Rep Power
    0

    Default

    HEY!!!

    ˇLo he solucionado!
    I've solved it!

  13. #33
    mad72584 is offline Member
    Join Date
    Aug 2011
    Location
    Bogotá
    Posts
    28
    Rep Power
    0

    Default

    I have made a new Cerrar.png with GIMP, I made it with Microangelo, but now i've made with GIMP and perfect. I guess the png was corrupted, I never did imagined it could be.

    Thanks very much everybody, overall to Norm, you helped me a lot, and Fubarable.

    How do I close this thread?

  14. #34
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,267
    Rep Power
    25

    Default

    Glad you got it to work.

    I never did imagined it could be.
    This will get you in lots of trouble.
    Doubt everything. Check everything.

  15. #35
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

  16. #36
    mad72584 is offline Member
    Join Date
    Aug 2011
    Location
    Bogotá
    Posts
    28
    Rep Power
    0

Page 2 of 2 FirstFirst 12

Similar Threads

  1. why this doesn't work?
    By hitesh_public in forum New To Java
    Replies: 5
    Last Post: 08-09-2010, 08:07 AM
  2. JScrollPane doesn't work?
    By ecliptical in forum New To Java
    Replies: 4
    Last Post: 01-25-2010, 12:35 AM
  3. Why doesn't this work?
    By Corder10 in forum New To Java
    Replies: 1
    Last Post: 07-04-2009, 10:33 PM
  4. my loop doesn't work.. pls help???
    By ashton in forum New To Java
    Replies: 5
    Last Post: 01-16-2009, 08:24 AM
  5. Synchronization Doesn't seem to work
    By sherinpearl in forum Threads and Synchronization
    Replies: 1
    Last Post: 04-23-2008, 06:30 PM

Tags for this Thread

Posting Permissions

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