Jump to content
Carlos Almeida

JSch and CAESES

Recommended Posts

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

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

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...