How ? .net call Java class

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi.everyone..
Suppose, i have a Java class:

public class Test{
public String testMethod(String args){
return "Hi I am Java";
}
}
How could .net call method "testMethod"? Any suggestions,or related links?
Also welcome to discuss via msn : seu_li at hotmail dot com.
thanks any replies in advance.
 
The easiest way is to compile the Java code with J# in order to build a .NET
DLL. Then you can reference the DLL from other .NET projects n any language.
 
Ed Kaim said:
The easiest way is to compile the Java code with J# in order to build a .NET
DLL. Then you can reference the DLL from other .NET projects n any language.

Well, that's only the easiest way if the Java code only requires Java
1.1, isn't it? (Unless I've misread something, J# doesn't support
Java2, i.e. Java 1.2 and higher.)

Another possibility is a Java<->.NET bridge: see
http://j-integra.intrinsyc.com/
 
Jon Skeet said:
language.

Well, that's only the easiest way if the Java code only requires Java
1.1, isn't it? (Unless I've misread something, J# doesn't support
Java2, i.e. Java 1.2 and higher.)

Another possibility is a Java<->.NET bridge: see
http://j-integra.intrinsyc.com/

Since we're mentioning bridging products, we should also mention
JNBridgePro. See www.jnbridge.com.

BTW, if you only have binary for your Java code, you pretty much need a
bridge or similar technology to accomplish the interop.

Wayne
____________________________________
Wayne Citrin
JNBridge, LLC
(e-mail address removed)
www.jnbridge.com
Spanning the Worlds of Java and .NET
____________________________________
 
Wayne Citrin said:
Since we're mentioning bridging products, we should also mention
JNBridgePro. See www.jnbridge.com.

BTW, if you only have binary for your Java code, you pretty much need a
bridge or similar technology to accomplish the interop.

I knew there was another popular one - just couldn't remember the name.
Apologies :(
 
Back
Top