locked
my java class in not recognized in .net web application RRS feed

  • Question

  • User718667968 posted

    Hi,
    I'm working with JNI, I have a .net project that refers to java class that located in it.
    this is a windows application.
    I created a new webiste in .net, in the same solution,  and I try to use the dll that
    created out of my windows application.
    The problem is that I get exception that caused because the java class is not found.
    (The type initializer for 'Prog' threw an exception.)
    Why the java class is not recognized in my web application ?
    I referense there to the dll that is created out of the win app.
    I also moved there the java class.
    Thanks for any help. 

    Thursday, January 14, 2010 2:59 AM

All replies

  • User1353953242 posted

    what you are using for that ... if you are using java web services than try this...

    import javax.jws.*;

    @WebService
    public class ClassName{
             
           
    @WebMethod
             your Method()
             {
                  ....
             }
     }

    Mark as answer if it helps.

    Thursday, January 14, 2010 3:55 AM