If this is a client application, you can take a look at the java.awt.Desktop class.
From javadoc ...
Launches the user default mail client mail creation window, filling in the message fields specified by mailto: URI.
Mailto: URI can specify message fields, including "to", "cc", "subject", "body", etc. See the mailto URL scheme (RFC 2368) for details of the mailto: URI specification.
This does not allow you to attach the file, but it will open the user's mail client.
This link may be useful ... Using the Desktop API in Java SE 6
source share