using Java in ASP.Net 2.0

using Java in ASP.Net 2.0

am 16.01.2008 15:33:17 von maboo59

Hello,
I need to call a function from a java class(Example.java, not
Javascript) from
within .Net 2.0 and I don't know how to do it.
Does anyone hava any suggestions?

Thanks

RE: using Java in ASP.Net 2.0

am 16.01.2008 15:45:00 von pbromberg

Suggestion: If you have the .java source code, convert the class to C#. Or if
you have the Visual J# runtime, you could compile it as visual j# assembly
which would allow you to instantiate the class in the .NET Framework and make
a normal C# or VB.NET method call against it.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com


"maboo59" wrote:

> Hello,
> I need to call a function from a java class(Example.java, not
> Javascript) from
> within .Net 2.0 and I don't know how to do it.
> Does anyone hava any suggestions?
>
> Thanks
>

RE: using Java in ASP.Net 2.0

am 16.01.2008 18:09:00 von brucebarker

there is no browser standard for this. sun supplies a api that works in
several browsers.

http://java.sun.com/products/plugin/1.3/docs/jsobject.html


-- bruce (sqlwork.com)


"maboo59" wrote:

> Hello,
> I need to call a function from a java class(Example.java, not
> Javascript) from
> within .Net 2.0 and I don't know how to do it.
> Does anyone hava any suggestions?
>
> Thanks
>

Re: using Java in ASP.Net 2.0

am 17.01.2008 02:45:05 von Jacky Kwok

maboo59 wrote:
> Hello,
> I need to call a function from a java class(Example.java, not
> Javascript) from
> within .Net 2.0 and I don't know how to do it.
> Does anyone hava any suggestions?
>
> Thanks


Not sure work in ASP.NET or not.

However, I had used the following 2 method to call java class library in
Dotnet C# Window Application.

1. using standard Sun Java native Interface API.

refer http://java.sun.com/javase/6/docs/technotes/guides/jni/index .html

It is C/C++ interface, using Managed C++ to build a wrapper class to
provide Dotnet interface.

2. using the IKVM.net
refer http://www.ikvm.net/

It is a tool set which has a function can convert Java class library to
Dotnet assembly in limited case.


--
Jacky Kwok
jacky@alumni_DOT_cuhk_DOT_edu_DOT_hk