I am still in the beginning stages of learning Java. I have a friend at work "math challenged" so I made this very basic little program and I would like to "export" the code so I can put on her computer and she can "run" it. Is there a simple way to do this? I tried to export an executable jar file from Eclipse but when I double click on it I get an error. Any help will be appreciated.
Have you included all those other classes in the .jar?
Did you instruct Eclipse to mark an entry point (class with main method)?
Does your friend have a suitable JRE in the PATH on her computer?
Is it the right version of Java™? You can't run programs compiled for Java5 on a 1.4.2 JRE.
Have you got an association between .jar files and the JRE?
What sort of error message do you get?