Using a Java class in .Net
Posted by Em on 21 January, 2008
8 Comments
This item was filled under [ .Net ]
It might sound a little complex using Java package in .Net but trust me, the interoperability is quite easy I’ll explain the procedure in few simple steps:
1. Create a simple Java class, for e.g.
public class CalculatorX {
public int Add(int firstNum, int secondNum)
{
return firstNum + secondNum;
}
}
2. Compile it to create a .class
> javac calculatorx.java
3. [...]