Print this page

How to use Email-To-Case Java Agent Tool?

Knowledge Article Number 000181619
Description When Salesforce did not provide on-demand Email-To-Case feature, Salesforce had a tool known as Java Agent which was used for case creation.

There could be scenarios where user needs Java Agent with Salesforce.
For instance, user gets emails for case creation, but due to size limit or security reasons, he does not want the email attachments to be saved on salesforce.
The only way to meet this requirement would be to use the Java Agent Tool.
This tool will process the emails and then create the case in Salesforce.

Salesforce has the tool available on its wiki site:

The tool, complete documentation, usage and sample code is available on the same link.

1. Go to the link
2. Login with Developer Org username and password (not with Production or Sandbox ID)
3. Go to "Download" section and download the zip file (

JDK 1.5.0_06 or above
Ensure to have a test email account and test Salesforce Service and Support organization to test with.
Enable EmailToCase in Org.


promote demote