IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Create executable jar file

    Posted Wed February 18, 2015 11:08 AM

    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.


    #Mainframe-Integration
    #EntireX
    #webMethods


  • 2.  RE: Create executable jar file

    Posted Wed February 18, 2015 11:10 AM

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


    #EntireX
    #webMethods
    #Mainframe-Integration


  • 3.  RE: Create executable jar file

    Posted Wed February 18, 2015 11:12 AM

    You have to add entirex.jar to your classpath.


    #Mainframe-Integration
    #EntireX
    #webMethods


  • 4.  RE: Create executable jar file

    Posted Thu February 19, 2015 07:27 AM

    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.


    #Mainframe-Integration
    #EntireX
    #webMethods


  • 5.  RE: Create executable jar file

    Posted Thu February 19, 2015 08:27 AM

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


    #webMethods
    #Mainframe-Integration
    #EntireX


  • 6.  RE: Create executable jar file

    Posted Thu February 19, 2015 09:07 AM

    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?


    #EntireX
    #webMethods
    #Mainframe-Integration


  • 7.  RE: Create executable jar file

    Posted Thu February 19, 2015 10:32 AM

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

    But you still need a working classpath setting …


    #webMethods
    #EntireX
    #Mainframe-Integration


  • 8.  RE: Create executable jar file

    Posted Mon February 23, 2015 09:00 AM

    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.


    #EntireX
    #webMethods
    #Mainframe-Integration