Hi, im relativly new to Java and programming all together. I just have a simple question I belive. How do I export a program I have made so it can be executed with a shortcut on say my desktop?
Printable View
Hi, im relativly new to Java and programming all together. I just have a simple question I belive. How do I export a program I have made so it can be executed with a shortcut on say my desktop?
Can you only run java programs from the .class file in a cmd prompt?
As far as I know, you can either
A) Create a shortcut that runs the class file
or
B) Create an executable jar file that will run when double clicked
For A, you can simply paste the command into the shortcut and it will work, and below you can find a link on how to create an executable jar.
http://www.cs.princeton.edu/introcs/...n/jar/jar.html
Thanks Smitty that answers my question too.