|
-
Dec 14th, 2010, 01:36 AM
#1
Thread Starter
Lively Member
Exporting
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?
Last edited by OT²O; Dec 15th, 2010 at 09:48 PM.
-
Dec 14th, 2010, 07:43 PM
#2
Thread Starter
Lively Member
Re: Exporting
Can you only run java programs from the .class file in a cmd prompt?
-
Dec 14th, 2010, 08:52 PM
#3
Re: Exporting
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
-
Dec 15th, 2010, 09:48 PM
#4
Thread Starter
Lively Member
Re: Exporting
 Originally Posted by kfcSmitty
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
Thank you Smitty.
On the off chance that I helped you ( Rate This Post){
Also If your problem was resolved;
}
-
Dec 16th, 2010, 01:06 AM
#5
Re: Exporting
Thanks Smitty that answers my question too.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|