RE: [JSch-J2ME] Problem running on MIPS using esmertec's Jeode J2ME CDC Personal Profile
Status: Alpha
Brought to you by:
ymnk
From: Michael C. <mi...@br...> - 2005-01-18 15:27:20
|
Hello Atsuhiko, Thank you for responding. When I remove the SUN JCE components, so that only the JSCH J2ME jar and the BouncyCastle zip files are in the CLASSPATH the following error occurs. java.security.NoSuchAlgorithmException: DH KeyPairGenerator not available Exception in thread "Thread-0", java.lang.NoClassDefFoundError: javax/crypto/spec/DHParameterSpec at com.jcraft.jsch.jce.DH.getE (bytecode 7) at com.jcraft.jsch.DHG1.init (bytecode 172) at com.jcraft.jsch.Session.receive_kexinit (bytecode 179) at com.jcraft.jsch.Session.connect (bytecode 693) at com.jcraft.jsch.Session.connect (bytecode 5) at com.jcraft.jcterm.JCTermJ2MECDC.run (bytecode 291) at java.lang.Thread.run (line 10) Do I need to make an entry in the java.security file for the BouncyCastle provider? I did find a reference on the BouncyCastle Web site to make the entry, however I do not know what class name to refer to. Regards, Mike -----Original Message----- From: Atsuhiko Yamanaka [mailto:ym...@jc...] Sent: Tuesday, January 18, 2005 10:00 AM To: mi...@br... Cc: jsc...@li... Subject: Re: [JSch-J2ME] Problem running on MIPS using esmertec's Jeode J2ME CDC Personal Profile Hi, Thank you for trying! +-From: "Michael Comeau" <mi...@br...> -- |_Date: Tue, 18 Jan 2005 08:41:05 -0500 ____________ | |Hi, I am attempting to get JSCH for J2ME running on an embedded |MIPS/Linux platform using the Jeode J2ME JVM by Esmertec. I think that Jeode J2ME JVM by Esmertec is CDC. Is it right? |I am getting the following error when running the JCTerm sample. | java.security.NoSuchAlgorithmException: SHA1WITHRSA Signature not available I guess you have tried http://j2me.jsch.org/jsch-0.1.17-j2mecdc-32.zip That jsch for J2ME/CDC will not use JCE and only depends on BouncyCastle's lightweight cryptography API. |My CLASSPATH variable contains the following: |/app/jsch/lib/US_export_policy.jar:/app/jsch/lib/jce1_2_2.jar:/app/jsch/lib /jsch-20050117.jar:/app/jsch/lib/local_policy.jar:/app/jsch/lib/midp_classes .zip:/app/jsch/lib/midp_crypto.zip:/app/jsch/lib/sunjce_provider.jar So, may I ask you to delete JCEs and only add BC API, which is available at http://www.bouncycastle.org/download/lcrypto-j2me-125.zip ? Thanks, -- ymnk |