Carlos Almeida 0 Report post Posted October 21, 2023 Hello, I'm trying to connect CAESES to Star-CCM+ using a Javascript I wrote using some macros from Star-CCM+. I don't have access to the SSH Resource Manager, but I need to run my simulations in a cluster. So I wrote a .java code that uses JSch to connect my local machine to the host via SSH, and the code runs smoothly on IntelliJ, where I can add the JSch libraries easily. However, CAESES gives me an error when it tries to run the simulation using my macro: Quote macro_master.java:11: error: package com.jcraft.jsch does not exist import com.jcraft.jsch.Channel; ^ macro_master.java:12: error: package com.jcraft.jsch does not exist import com.jcraft.jsch.ChannelExec; ^ macro_master.java:13: error: package com.jcraft.jsch does not exist import com.jcraft.jsch.JSch; ^ macro_master.java:14: error: package com.jcraft.jsch does not exist import com.jcraft.jsch.Session; How can I add the JSch .jar libraries to CAESES? Share this post Link to post Share on other sites
Hannes 1 Report post Posted October 23, 2023 Hi Carlos, unfortunately, I cannot give you any hints regarding the integration of the .jar libraries in CAESES. Generally, a typical approach would be to - keep the setup (*.jar / *.java) on the cluster separate from CAESES. - just create a text file with all variables to be edited by CAESES and write that to the cluster. - Use a bash wrapper similar to the attached example for SLURM to fetch the setup and launch the runs. This script is called from the CAESES software connector. It is important that the bash script stays alive as long as the run in active as CAESES will be monitoring it and look for the results as soon as it ends. Hope this helps. Cheers, Hannes slurmExample.tar.gz 1 Share this post Link to post Share on other sites