JAR Problem

I wrote a program and exported it to a .jar file. I can run the .jar file on my computer (Windows XP), and my GUI interface shows up, but when I send it to my other friends computer, he gets an error that says

"Could not find main class. Program will exit"

And when I send it to my friend who has a mac, nothing happens. She said it feels like "it's going to open, but then it doesn't."

Any ideas?

[424 byte] By [imdandmana] at [2007-11-27 6:16:15]
# 1

Hello there,

I suggest you look through thr tutorials on .jar stuff:

http://java.sun.com/docs/books/tutorial/deployment/jar/

You may find your answer there. Your question is extremely hard to answer as you dont give alot of information. The answer to your question could be a million things!!!

Hope the tutorials are useful.

Redstaara at 2007-7-12 17:27:41 > top of Java-index,Java Essentials,Java Programming...
# 2
What other information is pertinent to the question?
imdandmana at 2007-7-12 17:27:41 > top of Java-index,Java Essentials,Java Programming...
# 3
It sounds like your manifest is either missing or broken.
cotton.ma at 2007-7-12 17:27:41 > top of Java-index,Java Essentials,Java Programming...
# 4
The answer to this could be many things!!!!!1: Was the .jar file sent to the recipient corrupted?2: Is there a problem with your friends computer?3: Is YOUR coding correct?Get what I mean?
Redstaara at 2007-7-12 17:27:41 > top of Java-index,Java Essentials,Java Programming...
# 5
I don't see how my coding could be incorrect as it works on multiple PCs at my house. As far as I know it arrived intact. I sent it via an AIM transfer. As for my friends computer, I don't know. I haven't been able to examine them.
imdandmana at 2007-7-12 17:27:41 > top of Java-index,Java Essentials,Java Programming...
# 6
When you say you are running this jar successfully on your machine, how exactly do you run it? What are the exact steps you are taking?
cotton.ma at 2007-7-12 17:27:41 > top of Java-index,Java Essentials,Java Programming...
# 7
I can double click the file and it will execute.I can go to the windows XP command line and type java -jar program.jarand it will also execute
imdandmana at 2007-7-12 17:27:41 > top of Java-index,Java Essentials,Java Programming...
# 8
> I can double click the file and it will execute.Hmmm. Then the problem is one of the followinga) the JAR is being corrupted in transport (but this is unlikely I think)b) you have a mysterious classpath issue of some sort.
cotton.ma at 2007-7-12 17:27:41 > top of Java-index,Java Essentials,Java Programming...
# 9
Ideas on how to fix classpath issues?
imdandmana at 2007-7-12 17:27:41 > top of Java-index,Java Essentials,Java Programming...