Topic
3 replies Latest Post - ‏2013-09-03T14:40:17Z by markevans
dwkey
dwkey
195 Posts
ACCEPTED ANSWER

Pinned topic EGL0078E when EGL generated Java call C++

‏2013-08-22T16:04:09Z |

 

One VAGen customer  is verifying the function that EGL/Java calls native C/C++ program on Windows to prove that

its VAGen legacy application( VG/C++  call native C/C++)  can be migrated to RBD  9.0.

Its legacy application is client/server architecture ( GUI built by JBuilder  calls  VAGen/C++ through VAGen Java wrapper ).

By following the EGL linkage documents, I created a linkage entry for CP( C++ program)  and set the

type= remotecall  library=CP  remoteComType=DISTINCT  remotePgmType=externallyDefined

When generating  the EGL calling program ,  the javaBuildOption with the CP linkage is used.      

The CP DLL is placed in the same directory with EGL/Java  jar file  and the directory has been added to PATH and the

wrapperCompatibility = current  is used

During the runtime trace message ,  the EGL0078E with RC=126  is returned.

Any  hints or experience sharing is very welcome

BTW , RBD  9.0 and JRE 1.6 is used  for both Java GUI and Java server in runtime.  

 

 

 

 

  • markevans
    markevans
    2729 Posts
    ACCEPTED ANSWER

    Re: EGL0078E when EGL generated Java call C++

    ‏2013-08-26T22:10:31Z  in response to dwkey

    L.H.,

    See the following section in the helps on setting up a non-J2EE environment.

    http://pic.dhe.ibm.com/infocenter/rbdhelp/v8r5m0/topic/com.ibm.egl.gg.doc/topics/gegl_java_installeglruntimecode.html

    I am pretty sure that we have to call out to an EGL supplied dll and it makes the call to the C++  program.   Therefore, the code in the bin files for Windows have to be in the PATH also.

    See if this helps.

    • dwkey
      dwkey
      195 Posts
      ACCEPTED ANSWER

      Re: EGL0078E when EGL generated Java call C++

      ‏2013-09-01T12:08:04Z  in response to markevans

      Hi Mark,

      
      After unzip SDPShared\plugins\com.ibm.etools.egl.java.binaries_
      
      8.5.0.v20130204_1623.jar and
      

      add EGLRuntimes\win32\bin to PATH, the native C++ can be called from EGL generated Java. 

       

      Thanks for your help.  

      • markevans
        markevans
        2729 Posts
        ACCEPTED ANSWER

        Re: EGL0078E when EGL generated Java call C++

        ‏2013-09-03T14:40:17Z  in response to dwkey

        Thanks for posting back that it worked...so others can find this solution.