# Create executable jar file

**URL:** <https://techcommunity.softwareag.com/t/create-executable-jar-file/180684>\
**Category:** Forum\
**Tags:** Mainframe-Integration, EntireX\
**Created:** [February 18, 2015, 4:07pm UTC](https://techcommunity.softwareag.com/t/create-executable-jar-file/180684 "2015-02-18T16:07:57Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![blessing](https://avatars.discourse-cdn.com/v4/letter/b/90db22/32.png) [@blessing](https://techcommunity.softwareag.com/u/blessing)\
**Post date:** [February 18, 2015, 4:07pm UTC](https://techcommunity.softwareag.com/t/create-executable-jar-file/180684/1 "2015-02-18T16:07:57Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Finn\_the\_Dane1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/finn_the_dane1/32/132_2.png) [@Finn\_the\_Dane1](https://techcommunity.softwareag.com/u/Finn_the_Dane1)\
**Post date:** [February 18, 2015, 4:10pm UTC](https://techcommunity.softwareag.com/t/create-executable-jar-file/180684/2 "2015-02-18T16:10:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Rolf\_Bahlke](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/rolf_bahlke/32/109_2.png) [@Rolf\_Bahlke](https://techcommunity.softwareag.com/u/Rolf_Bahlke)\
**Post date:** [February 18, 2015, 4:12pm UTC](https://techcommunity.softwareag.com/t/create-executable-jar-file/180684/3 "2015-02-18T16:12:19Z")

</div>

You have to add entirex.jar to your classpath.

---

<div class="post-metadata">

**Author:** ![blessing](https://avatars.discourse-cdn.com/v4/letter/b/90db22/32.png) [@blessing](https://techcommunity.softwareag.com/u/blessing)\
**Post date:** [February 19, 2015, 12:27pm UTC](https://techcommunity.softwareag.com/t/create-executable-jar-file/180684/4 "2015-02-19T12:27:06Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Rolf\_Bahlke](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/rolf_bahlke/32/109_2.png) [@Rolf\_Bahlke](https://techcommunity.softwareag.com/u/Rolf_Bahlke)\
**Post date:** [February 19, 2015, 1:27pm UTC](https://techcommunity.softwareag.com/t/create-executable-jar-file/180684/5 "2015-02-19T13:27:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![blessing](https://avatars.discourse-cdn.com/v4/letter/b/90db22/32.png) [@blessing](https://techcommunity.softwareag.com/u/blessing)\
**Post date:** [February 19, 2015, 2:07pm UTC](https://techcommunity.softwareag.com/t/create-executable-jar-file/180684/6 "2015-02-19T14:07:10Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Rolf\_Bahlke](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/rolf_bahlke/32/109_2.png) [@Rolf\_Bahlke](https://techcommunity.softwareag.com/u/Rolf_Bahlke)\
**Post date:** [February 19, 2015, 3:32pm UTC](https://techcommunity.softwareag.com/t/create-executable-jar-file/180684/7 "2015-02-19T15:32:13Z")

</div>

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

But you still need a working classpath setting …

---

<div class="post-metadata">

**Author:** ![blessing](https://avatars.discourse-cdn.com/v4/letter/b/90db22/32.png) [@blessing](https://techcommunity.softwareag.com/u/blessing)\
**Post date:** [February 23, 2015, 2:00pm UTC](https://techcommunity.softwareag.com/t/create-executable-jar-file/180684/8 "2015-02-23T14:00:09Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:32pm UTC](https://techcommunity.softwareag.com/t/create-executable-jar-file/180684/9 "2021-04-02T15:32:55Z")

</div>


