Results 1 to 5 of 5

Thread: Exporting

  1. #1

    Thread Starter
    Lively Member OT²O's Avatar
    Join Date
    Jan 2010
    Location
    Washington State
    Posts
    96

    Resolved 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.

  2. #2

    Thread Starter
    Lively Member OT²O's Avatar
    Join Date
    Jan 2010
    Location
    Washington State
    Posts
    96

    Re: Exporting

    Can you only run java programs from the .class file in a cmd prompt?

  3. #3
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    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

  4. #4

    Thread Starter
    Lively Member OT²O's Avatar
    Join Date
    Jan 2010
    Location
    Washington State
    Posts
    96

    Re: Exporting

    Quote Originally Posted by kfcSmitty View Post
    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;
    }

  5. #5
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    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
  •  



Click Here to Expand Forum to Full Width