Search:

Type: Posts; User: Norm

Search: Search took 0.21 seconds.

  1. Replies
    43
    Views
    6,719

    Re: Jar Executable File

    Try it. No idea how vista works.
  2. Replies
    43
    Views
    6,719

    Re: Jar Executable File

    On WinXP XP will open zip files. Rename the file by adding .zip to the end.
  3. Replies
    43
    Views
    6,719

    Re: Jar Executable File

    Do you have a program that can open a zip file?
  4. Replies
    43
    Views
    6,719

    Re: Jar Executable File

    The java program doesn't like your jar file.
    Can you open it using a program that can read zip files and see if its corrupted?
    If you can open it, look at the manifest file and see if it is...
  5. Replies
    43
    Views
    6,719

    Re: Jar Executable File

    Did you try my code in a program?
  6. Replies
    43
    Views
    6,719

    Re: Jar Executable File

    Look at this code. Make a small test program and execute it. Enter chars vs digits sometimes.


    try {
    System.out.print("Enter an integer:");
    int x = s.nextInt();
    ...
  7. Replies
    43
    Views
    6,719

    Re: Jar Executable File

    I knew it! You have a ghost that is changing your code when you turn your head.


    You must enter the type of data that the program expects.
    And the program MUST handle ANY user input.
  8. Replies
    43
    Views
    6,719

    Re: Jar Executable File

    Depends on the IDE.
  9. Replies
    43
    Views
    6,719

    Re: Jar Executable File

    First you need to find it.
    Then figure out why it isn't ending.

    Do you mean you have intentionally written infinite loops in your code? Why?
    You always should have a way to exit a loop.
  10. Replies
    43
    Views
    6,719

    Re: Jar Executable File

    Sounds like witchcraft. Or a jinx. Have you made anyone angry?

    Now is the time for some println() debugging. Add enought println() statements to your code so you can see where it is executing and...
  11. Replies
    43
    Views
    6,719

    Re: Jar Executable File

    This is really pathetic. Don't you know how to rename a file?
    Do you see what the java command read from what you typed?
    What did the space in the command line do?
  12. Replies
    43
    Views
    6,719

    Re: Jar Executable File

    Leave off the <> they are meta characters representing places where the user should insert his stuff.
    Its better if there are no spaces in your filename.
  13. Replies
    43
    Views
    6,719

    Re: Jar Executable File

    yes you can.
    In the upper left of the window there is an icon. Press it.
    Choose Edit and then Select All
    Do it again and chose Copy.
    Here's what you could get:
  14. Replies
    43
    Views
    6,719

    Re: Jar Executable File

    I'm sorry my crystal ball isn't working. I have no idea what you did or what the results were.
    If you don't copy and paste the contents of the screen here, there is no way anyone can help.
  15. Replies
    43
    Views
    6,719

    Re: Jar Executable File

    On the console.


    Open a command prompt window, change to the directory with the jar file and enter:
    java -jar <thejarfilenamehere.jar>

    Copy and paste the results here.
  16. Replies
    43
    Views
    6,719

    Re: Jar Executable File

    I believe I've mentioned to you before that you should read the API doc and the tutorials. Its explained there.
  17. Replies
    43
    Views
    6,719

    Re: Jar Executable File

    Most java programs can be put into and executed from a jar file, including those that use println().
  18. Replies
    43
    Views
    6,719

    Re: Jar Executable File

    That's what I was trying to say. An applet is not an application. You do NOT click on a jar file containing an applet to execute the applet. You need an html file with an <APPLET tag with ...
  19. Replies
    43
    Views
    6,719

    Re: Jar Executable File

    Applet's are packaged slightly differently than apps. They don't need a manifest file, which is needed to be able to execute a jar file. But they do need all the classes.
    Is there some way to tell...
Results 1 to 19 of 19