Results 1 to 4 of 4
  1. #1
    kraig9 is offline Kraig9
    Join Date
    Jun 2012
    Central Texas
    Rep Power

    Default How to send application

    How can I send the class I wrote in Eclipse to a friend using email?

    *Main question: how do I compile it so it can work on his computer?*
    Last edited by kraig9; 07-16-2012 at 05:06 AM. Reason: incoherent

  2. #2
    Jaeela is offline Member
    Join Date
    Mar 2011
    Rep Power

    Default Re: How to send application

    In Eclipse, right click the file you wrote, then select Export. Expand Java, and select Runnable Jar File. Then hit next. In the dropdown box, select your class and project(Launch configuration). Select where you want to save it, and hit finish. If you want a command line way, check out jar.exe in the JDK.

  3. #3
    Gorilla Logic is offline Member
    Join Date
    Jul 2012
    Rep Power

    Default Re: How to send application

    Just make sure when sending the file it is a .jar file.
    Then he can launch it without the source code.

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Rep Power

    Default Re: How to send application

    They can launch it without the source code if it's just a single class file...or class files.
    The advantage of a jar file is that they can launch it by double-clicking the file (assuming both the jar file and java are set up correctly).
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Send SMS from Java Application for free
    By ARDS in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 02-16-2011, 04:49 AM
  2. Replies: 10
    Last Post: 06-06-2010, 06:49 PM
  3. Replies: 3
    Last Post: 12-04-2009, 12:10 PM
  4. Replies: 4
    Last Post: 11-26-2009, 09:40 AM
  5. Replies: 1
    Last Post: 08-05-2009, 02:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts