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
Expand all | Collapse all

Getting error when compiling java service

webMethods Community Member

webMethods Community MemberWed March 05, 2014 02:48 AM

  • 1.  Getting error when compiling java service

    Posted Mon March 03, 2014 10:46 AM

    Hi All,
    I am using wM7.1.2. When i am trying to compile a java service getting error which is as below :

    cannot access com.wm.util.Values
    bad class file: C:\webMethods712\common\lib\wm-isclient.jar(com/wm/util/Values.class)
    class file has wrong version 49.0, should be 48.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    import com.wm.util.Values;
    ^

    I already have wm-isclient.jar file which is of 3.34 MB in size. I tried to google to download new versioin of the jar file but could not able to locate. Kindly share me if anyone knows url from where i can download wm-isclient.jar file.

    Thanks,
    RP


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 2.  RE: Getting error when compiling java service

    Posted Mon March 03, 2014 11:02 AM

    Hi RP,

    Can you share the piece of code you are trying to compile and your requirement.

    And also in wM 7.1.2 in the file system I don’t see the path C:\webMethods712\common\lib\ (Not sure if this is correct as I am unable to locate this on my install)


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 3.  RE: Getting error when compiling java service

    Posted Mon March 03, 2014 11:11 AM

    Is the wm-isclient.jar copied from other version of WM? It seems that your jar is compiled with JDK 1.5, but 7.1.2 needs a 1.4 version. You can download it from my dropbox. https://dl.dropboxusercontent.com/u/55902810/wm-isclient.jar


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 4.  RE: Getting error when compiling java service

    Posted Tue March 04, 2014 03:09 AM

    @ Mahesh: I am getting this error with any java service when i am trying to compile.

    @ Wang : I copied file but still experiencing the same error.

    Any other suggestions to come out of this issue.

    Thanks,
    RP


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 5.  RE: Getting error when compiling java service

    Posted Tue March 04, 2014 03:34 AM

    What’s the value of Extended Setting watt.server.compile in your environment?


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 6.  RE: Getting error when compiling java service

    Posted Tue March 04, 2014 04:22 AM

    Let me know your java version and the extended settings on IS?


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 7.  RE: Getting error when compiling java service

    Posted Tue March 04, 2014 05:08 AM

    Hi,

    As part of extended setttings, i have below details :

    watt.server.compile=C:\webMethods712\jvm\win142\bin/javac -classpath {0} -d {1} {2}

    Thanks,
    RP


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 8.  RE: Getting error when compiling java service

    Posted Tue March 04, 2014 10:21 AM

    @RP,

    Your developer and IS should have of same version. Please let us know the IS and Developer/Designer versions.

    HTH.

    Thanks,
    Rankesh


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 9.  RE: Getting error when compiling java service

    Posted Tue March 04, 2014 10:31 AM

    @ RP,

    Just a thought, can you try installing JDK 1.5 and set the class path in extended settings as below

    For Eg:
    watt.server.compile=C:\Program Files\Java\jdk1.5.0_09\bin\javac -classpath {0} -d {1} {2}
    watt.server.compile.unicode=C:\Program Files\Java\jdk1.5.0_09\bin\javac -encoding Unicode -classpath {0} -d {1} {2}


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 10.  RE: Getting error when compiling java service

    Posted Wed March 05, 2014 02:45 AM

    Hi,
    I got wm-isclient.jar file which is of 3.7MB. After copying this jar to lib, its working absolutly fine. Thanks guys for your valuable inputs.

    Thanks,
    RP


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 11.  RE: Getting error when compiling java service

    Posted Wed March 05, 2014 02:48 AM


  • 12.  RE: Getting error when compiling java service

    Posted Wed March 05, 2014 03:42 AM

    3.7MB(3,877,399 bytes) is used for Version 8.x, you sure you are using 7.1.2?


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 13.  RE: Getting error when compiling java service

    Posted Wed March 05, 2014 04:33 AM

    Hi Wang,

    Yes, i am using wM7.1.2 version but still this jar file is working :slight_smile:

    Thanks,
    RP


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services