Create executable jar file

I have developed a java application that reads an XML and extracts the elements. it then updates the mainframe ADABAS thru the IDL.
Now I want to create a service or an executable jar file that I will schedule to run everyday and read the xml files as the arrive at at certain folder.
I am using eclipse and I have tried to create the jar file but when I run it it complains of the fiollowing:
Exception in thread “main” java.lang.NoClassDefFoundError: com/softwareag/entire
x/aci/RPCService.
I would appreciate help on the matter.

A quick guess:
Is EntireX.jar in your classpath ?

You have to add entirex.jar to your classpath.

Thank you for the reply.
I have included the whole path of the jar file in Class path in the environment variables but I still get the same error.
Is there anything that needs to be done in the manifest file that gets created when I do the export of the project when creating the jar file.

You can add a dependency to the entirex.jar in the manifest of your jar file.

I think maybe I am not creating the jar file correctly to include everything that is needed.
What I do I use the export feature.
My manifest is as follows:

Manifest-Version: 1.0
Main-Class: afis.livescan

How do I add the dependency?

Add a line in the manifest:
Class-Path: entirex.jar

But you still need a working classpath setting …

What I have done now is to install fatjar into eclipse and I used it to create the jar file. This did not need the configuration of the classpath.