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...
Type: Posts; User: javapenguin
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...
I have Vista.
I might. Name some that will. Actually I do, but don't know their names.
I used Eclipse.
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.
Ok, code works now but still won't open. I told the desktop application to open with command prompt.
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:...
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...
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.
It's not that it doesn't handle it, it's that it won't stop handling it. :-??:((
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...
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...
How do I deal with the infinite loop in all of my try and catch blocks?
//********************************************************
//* Program #2 and 6 ...
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.
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
...
yes, but the file name is battleship game 2.jar.
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?
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...
I have the jar on my desktop, but I tried entering Desktop: and what you told me to, but it doesn't like it.
"The syntax of the command is incorrect."
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.
How? I couldn't get my perfectly working code to execute in Eclipse. Eclipse is very user-unfriendly.
Also, how come stuff with println can't become a jar?