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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  java service

    Posted 09/24/08 06:29 PM

    I have a java service and it uses a jar file which I have included in .\packages\webpackage\code\jars\

    but when I execute the java service, it throws the error:

    ava:48: cannot access com.mypackage.myjava
    bad class file: .\packages\webpackage\code\jars\StringLib.jar(com/mypackage/myjava.class)
    class file has wrong version 50.0, should be 49.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.

    Thanks


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


  • 2.  RE: java service

    Posted 09/25/08 02:57 AM

    Hi,

    This means that the when you compiled classes and created jar file you used a different JVM version.

    Now when you are adding the jar file in classpath, and writing java service, you are compiling with JVM other than the later one.

    Check the jvm with which you are compiling java service, you can check watt.server.compile property in IS extended settings, change it to the one you used for creating a jar file.

    Regards,
    Sumit


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