Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is there an easy way to share a program?

 
Darrin Altman
Greenhorn
Posts: 15
Eclipse IDE Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Here is the code for my program:
 
Campbell Ritchie
Sheriff
Posts: 51419
87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am afraid we need more details.

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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic