Search:

Type: Posts; User: javapenguin

Search: Search took 0.07 seconds.

  1. Replies
    43
    Views
    6,728

    Re: Jar Executable File

    Anyway, is there way to make these jars so they can be sent to others more easily instead of running into a lot of technical errors sending them in email?

    And is it possible to create a class that...
  2. Replies
    43
    Views
    6,728

    Re: Jar Executable File

    I have Vista.
  3. Replies
    43
    Views
    6,728

    Re: Jar Executable File

    I might. Name some that will. Actually I do, but don't know their names.
  4. Replies
    43
    Views
    6,728

    Re: Jar Executable File

    I used Eclipse.
  5. Replies
    43
    Views
    6,728

    Re: Jar Executable File

    It may possibly be corrupted, but it does like it when I enter the name of the file in the command prompt or something like that, though it only shows the copyright.
  6. Replies
    43
    Views
    6,728

    Re: Jar Executable File

    Ok, code works now but still won't open. I told the desktop application to open with command prompt.
  7. Replies
    43
    Views
    6,728

    Re: Jar Executable File

    Microsoft Windows [Version 6.0.6001]
    Copyright (c) 2006 Microsoft Corporation. All rights reserved.

    C:\Users\Paul>java -jar battleship2.jar
    Unable to access jarfile battleship2.jar

    And now:...
  8. Replies
    43
    Views
    6,728

    Re: Jar Executable File

    Not yet, but I figured out that it's only the Input Mismatch Exception that's causing the problem. The other two Eclipse claims are causing errors aren't. Actually, I see what you meant, though how...
  9. Replies
    43
    Views
    6,728

    Re: Jar Executable File

    How will it know which x you're talking about?

    int x = s.nextInt();

    InputMismatchException x

    System.out.println("error " + x);

    Also, it will run exceptions, it just keeps going, i.e.
  10. Replies
    43
    Views
    6,728

    Re: Jar Executable File

    It's not that it doesn't handle it, it's that it won't stop handling it. :-??:((
  11. Replies
    43
    Views
    6,728

    Re: Jar Executable File

    Why is it even asking the user to, repeatedly too unfortunately, to enter the size of the grid? I never told it to do that in the exception, did I?

    Enter a value that is an integer, i.e. not a...
  12. Replies
    43
    Views
    6,728

    Re: Jar Executable File

    Not on purpose. However, it might be because of all the while loops. I've had evil loops before, but I just put in a break and it went away, but this time it doesn't go where I want it to, and a...
  13. Replies
    43
    Views
    6,728

    Re: Jar Executable File

    How do I deal with the infinite loop in all of my try and catch blocks?


    //********************************************************
    //* Program #2 and 6 ...
  14. Replies
    43
    Views
    6,728

    Re: Jar Executable File

    There's some infinite loops that musta resulted when I copied code from JGrasp to Eclipse. Or maybe it was there all along. Maybe it isn't making the jar because that glitch could crash the system.
  15. Replies
    43
    Views
    6,728

    Re: Jar Executable File

    Microsoft Windows [Version 6.0.6001]
    Copyright (c) 2006 Microsoft Corporation. All rights reserved.

    C:\Users\Paul>java -jar battleship game 2.jar
    Unable to access jarfile battleship
    ...
  16. Replies
    43
    Views
    6,728

    Re: Jar Executable File

    yes, but the file name is battleship game 2.jar.
  17. Replies
    43
    Views
    6,728

    Re: Jar Executable File

    Microsoft Windows [Version 6.0.6001]
    Copyright (c) 2006 Microsoft Corporation. All rights reserved.

    C:\Users\Paul>

    The file is at

    C:\Users\Paul\Desktop

    but how do I tell it that?
  18. Replies
    43
    Views
    6,728

    Re: Jar Executable File

    It's on my desktop. How do I change the directory? Also, do I need the <>, because I'm including them and maybe they were there only as a reference and not to use when you showed them.

    I cannot...
  19. Replies
    43
    Views
    6,728

    Re: Jar Executable File

    I have the jar on my desktop, but I tried entering Desktop: and what you told me to, but it doesn't like it.
  20. Replies
    43
    Views
    6,728

    Re: Jar Executable File

    "The syntax of the command is incorrect."
  21. Replies
    43
    Views
    6,728

    Re: Jar Executable File

    I got it to make it a jar file, but it won't open. Where would the println stuff go anyway? And what would I use to run programs with println.
  22. Replies
    43
    Views
    6,728

    Re: Jar Executable File

    How? I couldn't get my perfectly working code to execute in Eclipse. Eclipse is very user-unfriendly.
  23. Replies
    43
    Views
    6,728

    Re: Jar Executable File

    Also, how come stuff with println can't become a jar?
Results 1 to 23 of 23