aspose file tools*
The moose likes Beginning Java and the fly likes Is there an easy way to share a program? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Is there an easy way to share a program?" Watch "Is there an easy way to share a program?" New topic
Author

Is there an easy way to share a program?

Darrin Altman
Greenhorn

Joined: Jul 10, 2011
Posts: 15

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

Joined: Oct 13, 2005
Posts: 38353
    
  23
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is there an easy way to share a program?