Skip to main content
Question

KnowHost File error messages - IFS Cloud


ZTC ZTC JGOTA
Hero (Customer)
Forum|alt.badge.img+14

Hello IFS Community,

In previous versions of IFS, specifically IFS9 and IFS10, I was able to generate the knownhosts.txt file using a command like the one below:

java -cp C:\IFS\jars\ifs-fnd-connect.jar;C:\IFS\jars\jsch-0.2.17.jar ifs.fnd.connect.ftp.SftpClient -CreateKnownHosts=c:\ifs\knownhosts.txt -hostname=vvvvvv -username=vvvvvv -password=vvvvvvv

 

One key difference I’ve noticed now is that, in the past, the paths in the command referenced JAR files located in the IFS Home directory, specifically under the repository folder.

However, in IFS Cloud 24 R1, there is no IFS Home directory, and consequently, the repository folder containing these JAR files no longer exists. This creates a challenge because when I attempt to run the same command using -cp, I receive the following error message:

 

  When I ran the command code without the -cp I am receiving the error message below.

I am following the IFS instructions and have already downloaded the two JAR files mentioned in the documentation.

Configure the SFTP Transport Connector - Technical Documentation For IFS Cloud

 

What I can see it is that I missing some MainClass of java,

 

Any idea or advice for me to archive this step.

 

Thanks,

4 replies

Forum|alt.badge.img+16
  • Superhero (Partner)
  • 408 replies
  • April 18, 2025

ZTC ZTC JGOTA
Hero (Customer)
Forum|alt.badge.img+14
  • Author
  • Hero (Customer)
  • 221 replies
  • April 18, 2025

Hello ​@knepiosko 

 

Thank you. I have already downloaded the two files I need to the server.


Do you know which version of Java is required?


I currently have the following version installed:

 

 

 

 


Forum|alt.badge.img+16
  • Superhero (Partner)
  • 408 replies
  • April 18, 2025

Java version:

C:\Program Files\Java\jdk-11.0.11\bin>java -version
java version "11.0.11" 2021-04-20 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.11+9-LTS-194)

 

Please check Your command as well:

java -cp C:\knownHosts\ifs-fnd-connect.jar;C:\knownHosts\jsch-0.2.17.jar ifs.fnd.connect.ftp.SftpClient -CreateKnownHosts=C:\knownHosts\knownhosts.txt -hostname=ftp.xxx.com -username=test -password=pass


dsj
Ultimate Hero (Partner)
Forum|alt.badge.img+22
  • Ultimate Hero (Partner)
  • 865 replies
  • April 22, 2025

Hi ​@ZTC ZTC JGOTA 

I’m using OpenJDK 21 and so far it’s working fine for knownhost file creation.

here’s a simple re-usable batch file I’m using to generate the knownhost files.

  • Save the file as create_knownhost.bat in a folder you prefer.
  • Download the latest ifs-fnd-connnect.jar and jsch.jar from the IFS documentation version and copy to the same folder

Configure the SFTP Transport Connector - Technical Documentation For IFS Cloud

  • run the command :)
@echo off
echo === Generate Known Hosts File ===

set /p KNOWNHOST_FILE_NAME=Enter known hosts file name: 
set /p HOST=Enter hostname: 

set /p PORT=Enter port [default 22]: 
if "%PORT%"=="" set PORT=22

set /p USERNAME=Enter username: 
set /p PASSWORD=Enter password: 

echo Running command...
java -cp ifs-fnd-connect.jar;jsch-0.1.54.jar ifs.fnd.connect.ftp.SftpClient -CreateKnownHosts=%KNOWNHOST_FILE_NAME% -hostname=%HOST% -port=%PORT% -username=%USERNAME% -password=%PASSWORD%

pause

 

Hope it helps!

Damith


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings