I’m trying to integrate Java with UiPath to run methods from a .jar file, but I’m not sure how to execute Java methods and handle the data output effectively in .NET. Could you walk me through this process?studi
Use the Java Scope activity to initialize a Java library, and load your .jar file with Load Jar. Then, call methods like getArrayInt using Invoke Java Method, storing outputs as JavaObject. To work with .NET, convert this object to an array (e.g., Int32) using Convert Java Object. You can manipulate these values or loop through them with a For Each activity. This lets you smoothly transition between Java and .NET data types in UiPath.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.