Can I call a JAVA function from a .java file just like we do with .py files, like importing and then calling the python functions present in .py file from our robot script.
So can I do that with JAVA code.
I need to automate some process and that process is already automated using JAVA, so I just need to trigger it from robot script.
Working with java is a bit more complicated but definitely possible. There is one year old example that installs jdk to robot runtime environment and then executes java code from command line: Robot with some java code
If you just want to run “everything” Java, then openjdk is available from conda-forge. See this: Openjdk :: Anaconda.org
There is also “Java Access Bridge”, but it is different thing and does not allow function calls. If you want to learn more about that, see: RPA.JavaAccessBridge library
@jippo I am having some automation scripts that are coded in JAVA, so I wanted to call/run/trigger those JAVA scripts from my robot script just like I am doing with python scripts i.e. converting those python scripts into a function, importing .py file into .robot file and calling that function in .robot file.
It actually works fine for Python scripts but for the scripts that are in JAVA, that i am not able to do it.
If they are “complete” commands that you can run, then maybe just install that openjdk, and then control those with commands like “Run Process” from Process library keywords