An unhandled exception of type 'java.lang.NoSuchMethodError' occurred in vjslib.dll

I receive the following error in a vb.net app. 

An unhandled exception of type 'java.lang.NoSuchMethodError' occurred in vjslib.dll. 

I am referecing vjslib.dll and two other wrapper dlls.  The two other wrapper dlls are provided by a vendor.  The code builds without error.  However, if I try and access a method/function/property within the dlls during runtime, I get the error above.  I can also navigate to the dlls properties and routines using the object browser.  Am I missing a setup, reference or environment variable somewhere   BTW.. I did a java -version and I am running sun virtal machine 1.4.2_06.  Although, I do not think that it matters for this problem.


Answer this question

An unhandled exception of type 'java.lang.NoSuchMethodError' occurred in vjslib.dll

  • dhannawat1

    Which method are u trying to access in vjslib.dll, thats giving you this error.

    Normally this error occurs when the program files are independently recompiled and method definition changes occur which affects calling program.

    Lets say a class A in package 1 is using method foo() in class B in package 2. Now class A will compile as compile time check on class B.foo() will pass (it will find foo() exists in class B)

    Now lets assume class B was recompiled with foo() method deleted.
    Now when A.exe is run, it will give NoSuchMethodError as during runtime it will not find method foo() in class B.

    I'm not sure if somehow this is happening in ur case.

    Btw, is this happening while you access any method in vjslib.dll Or is this occuring while u access a method in other wrapper dlls

    Can you provide some stacktrace

    Thanks

  • An unhandled exception of type 'java.lang.NoSuchMethodError' occurred in vjslib.dll