Posts Tagged ‘.net with java’

Using a Java class in .Net

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. [...]

Continue reading...