JAR compatibility
Okay, so I made a standalone jar program, and it works fine on my computer. Very simple swing application. I can double click and run the jar no problem.
I put a link to it on a web page and had some friends try it out, and it won't run on any of their computers for some reason.
I saw in another thread someone had suggested that a windows system might not be configured correctly to directly run jar files, but he checked and it was configured correctly.
He was getting an error saying that there was no main class declared, but I checked and it was right there in manifest and as I said it works fine on my computer.
So, I don't even know where to start to look for problems. The program is very simple. Just a couple of spinners and buttons and panes. Doesn't do anything except write a little text to a text area.
I would be very grateful for any suggestions on where to even begin looking for what could be causing this.
Thanks.
[980 byte] By [
Kramisa] at [2007-11-26 16:26:12]

# 1
I'm Having the same problem and i don't really know what to do either... I made some apps and made the .jar for them, and they run fine on my computer, but when a friend try to run any of them, they don't, says that the main class is not declared... any help ?thx
cenpa at 2007-7-8 22:50:18 >

# 2
> I'm Having the same problem and i don't really know
> what to do either...
>
> I made some apps and made the .jar for them, and
> they run fine on my computer, but when a friend try
> to run any of them, they don't, says that the main
> class is not declared...
>
When you try to run the jar on your computer, are you just double clicking on it or running it from the command line? When your friend tries it, command line or clicking? Are both computers running Windows?
I suggest trying it on your friend's computer from the command line (java -jar thejarfile.jar) and posting the full error message. If it does not work with "java -jar" try it with "java -cp thejarfile.jar TheMainClass"