4 Replies Latest reply on Sep 9, 2011 7:10 PM by sivaram

    for calling cobol from java, how can i add  cobal bin directory to PATH

    sivaram
      Hi all,


      When i am testing my Algorithm using JUNIT i am getting this Exception ,Can any one tell me What this exact Error.


      Exception in thread "CobolThread 1" java.lang.UnsatisfiedLinkError: no cbljvm_sun in java.library.path
           at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1734)
           at java.lang.Runtime.loadLibrary0(Runtime.java:823)
           at java.lang.System.loadLibrary(System.java:1028)
           at com.microfocus.cobol.RuntimeSystem.<clinit>(Unknown Source)
           at com.splwg.base.support.cobol.host.CobolThread.run(CobolThread.java:30)

      Thanks&Regards
      sivaram
        • 1. Re: for calling cobol from java, how can i add  cobal bin directory to PATH
          sivaram
          I observed i need to attache .dll directory to classpath,Pls Help me how can i add microfocus bin directory to eclipse class path for resolving this issue.
          • 2. Re: Unable to load class CIPZME,in sdk junit testing
            sivaram
            i overcome the above exception by seting microfocus bin in classpath
            But i am getting one more error.pls help to resolve this issue

            Exception in thread "CobolThread 1" com.splwg.shared.common.LoggedException: Unable to load class CIPZMEMJ. Return code: 2
            - 2011-09-07 12:51:52,111 [CobolThread 1] ERROR (cobol.host.CIPZMEMJ) Unable to load class CIPZMEMJ. Return code: 2
            com.splwg.shared.common.LoggedException: Unable to load class CIPZMEMJ. Return code: 2
                 at com.splwg.shared.common.LoggedException.raised(LoggedException.java:65)
                 at com.splwg.base.support.cobol.host.CIPZMEMJ.checkInitialized(CIPZMEMJ.java:36)
                 at com.splwg.base.support.cobol.host.CIPZMEMJ.touchToCobol(CIPZMEMJ.java:46)
                 at com.splwg.base.support.cobol.host.CobolThread.run(CobolThread.java:34)
                 at com.splwg.shared.common.LoggedException.raised(LoggedException.java:65)
                 at com.splwg.base.support.cobol.host.CIPZMEMJ.checkInitialized(CIPZMEMJ.java:36)
                 at com.splwg.base.support.cobol.host.CIPZMEMJ.touchToCobol(CIPZMEMJ.java:46)
                 at com.splwg.base.support.cobol.host.CobolThread.run(CobolThread.java:34)
            • 3. Re: Unable to load class CIPZME,in sdk junit testing
              user85109
              Please have a look at ID 1298765.1 on Oracle Support: "CCB Batch Process Errors "Unable to load class CIPZMEMJ"
              • 4. Re: Unable to load class CIPZME,in sdk junit testing
                sivaram
                Thank you for u r reply Ruud ven den Brand.I got it ,just i added spl runtime in path.