Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a question on a compiled Java program that I have written. I have a Java file that has three classes defined within it. When I compiled the program I got a total of four classes. How do I make this into a form where I can run my application just by clicking an icon or something, or by issuing just a single command. For example, if I make it as an exe file, it could run only on Windows, how do I make it into a form compatible with all Oses. And hoe?

share|improve this question
    
Java executables are .jar not .exe . .jar is platform independend so you can use it any platform –  Tachyons Jun 26 '13 at 2:03
    
You can run it by java -jar filename.jar –  Tachyons Jun 26 '13 at 2:04
    
Do I need to run that command only with the .java file, or with the class files –  Roshan George Jun 26 '13 at 2:12
    
If you really want more info on questions like this, www.stackoverflow.com is probably a better bet. –  sean_m Jun 26 '13 at 2:26
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.