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 16:44:25
|
Hello again, I have only the default SUN provider entry in java.security. I have included only the following on the CLASSPATH: jsch-0.1.17-j2mecdc-32.jar midp_classes.zip midp_crypto.zip Yet, when I run the JCTerm application I receive the following error: connect: random java.lang.ClassNotFoundException: com/jcraft/jsch/jce/Random java.lang.NullPointerException at com.jcraft.jsch.Session.send_kexinit (bytecode 48) at com.jcraft.jsch.Session.receive_kexinit (bytecode 69) 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) It looks like the com.jcraft.jsch.Session class included in the jsch-0.1.17-j2mecdc-32.jar was built to use the com.jcraft.jsch.jce package. I have all of the sources and have built them. If you can tell me what I need to update to make use of the com.jcraft.jsch.bc package I will make the change and rebuild. Thanks, Mike -----Original Message----- From: Atsuhiko Yamanaka [mailto:ym...@jc...] Sent: Tuesday, January 18, 2005 10:47 AM To: mi...@br... Cc: jsc...@li... Subject: Re: [JSch-J2ME] Problem running on MIPS using esmertec's Jeode J2ME CDC Personal Profile Hi, +-From: "Michael Comeau" <mi...@br...> -- |_Date: Tue, 18 Jan 2005 10:27:16 -0500 ____________ | |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.jcterm.JCTermJ2MECDC.run (bytecode 291) | at java.lang.Thread.run (line 10) It seems wrong jar has been included in CLASSPATH. http://j2me.jsch.org/jsch-0.1.17-j2mecdc-32.zip has not included 'com.jcraft.jsch.jce' package and it should refer to 'com.jcraft.jsch.bc' package. May I ask you to add http://j2me.jsch.org/jsch-0.1.17-j2mecdc-32.jar ? |Do I need to make an entry in the java.security file for the |BouncyCastle provider? It will only use BC's lightweight API, so you don't have to modify java.security file. Thanks, -- ymnk |