I am running one of the Examples provided in JSCH in solaris server. I am
using JDK 1.3 and JCE 1.2.1. While running the program ,I have updated my
classpath with all the jars present in the JCE 1.2.1. /lib directory . When
I run the program it gave me java.security.NoSuchAlgorithmException: DH
KeyPairGenerator not available Exception.
But when I copy all the jars from JCE 1.2.1. /lib to JRE_1.3.1/lib/ext the
program runs fine .
It means that it is mandatory for JSCH (copying all the security jars in
JRE_1.3.1/lib/ext ) while running it in JRE1.3 , if not then what is the
The same problem I am getting in Windows Enviornment also.
+-From: "Singhal, Ankit (Ankit)" <asinghal@...> --
|_Date: Mon, 30 Aug 2004 19:37:24 +0530 _________________
|It means that it is mandatory for JSCH (copying all the security
|jars in JRE_1.3.1/lib/ext ) while running it in JRE1.3 , if not
|then what is the work around.
Yes, it is FAQ and well known troublesomes to run JSch on J2SE 1.3 or
Ok, now I have a good news for you.
We have been continuing efforts to port JSch on J2ME platform in these
# Of course, it will be provided under revised BSD license.
As a first step, we have done to make JSch to be free from
JCE, thanks to BouncyCastle Crypto API.
This means that JSch can easily run on J2SE 1.3, J2SE 1.2 or JDK 1.1, etc.,
without additional JCE installation.
If you are interested in this work, download
then, try following steps,
$ unzip jsch-0.2.alpha-20040901.zip
$ cd jsch-0.2.alpha-20040901/examples
$ CLASSPATH=bc-lcrypto-j2me-124-modified.jar:../src:. java Shell
FYI, 'bc-lcrypto-j2me-124-modified.jar' has included byte code
generated from 'lcrypto-j2me-124.tar.gz' at http://www.boyncycastle.org/,
but we have deleted some class files from it.
If you have any problems, suggestions, etc., feel free to write me.