Archive: Can java class run in nsis script


Can java class run in nsis script
Hi All,

I need help in communication with nsis file to java. Is it possiable in nsis?

I have java class Calculator.java

public class Calculator {

public static Integer sum(int a, int b) {
int c = a+b;
return c;
}

}

while installing, from calculator.java class using method sum(5,6) i want to get this result in nsis file

can any one help this concept?

Thank you in advance.


You cannot directly call a Java function from within NSIS. You could compile the Java code into a class file, and assuming you had a JRE installed you could call the class from the command line and potentially get a return code from the call.