Try it. No idea how vista works.
Type: Posts; User: Norm
Try it. No idea how vista works.
On WinXP XP will open zip files. Rename the file by adding .zip to the end.
Do you have a program that can open a zip 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...
Did you try my code in a program?
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();
...
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.
Depends on the IDE.
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.
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...
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?
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.
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:
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.
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.
I believe I've mentioned to you before that you should read the API doc and the tutorials. Its explained there.
Most java programs can be put into and executed from a jar file, including those that use println().
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 ...
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...