jsch-j2me Mailing List for JSch (Page 2)
Status: Alpha
Brought to you by:
ymnk
You can subscribe to this list here.
2005 |
Jan
(14) |
Feb
(6) |
Mar
(2) |
Apr
(2) |
May
(2) |
Jun
(2) |
Jul
(6) |
Aug
(2) |
Sep
(6) |
Oct
(2) |
Nov
(8) |
Dec
(1) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(2) |
Feb
(1) |
Mar
(2) |
Apr
(1) |
May
(2) |
Jun
(6) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2008 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <ym...@jc...> - 2005-01-26 14:31:40
|
Hi there, As an example, I have tried to integrate JSch into J2MEVNC, which is GPL'ed VNC viewer at http://j2mevnc.sourceforge.net/ . After some tiny hacks, it seems it works at least on Sun's Wireless Toolkit simulator. If you are interested in this hack, please refer to http://sourceforge.net/forum/forum.php?thread_id=1218089&forum_id=262224 Thanks, -- ymnk |
From: <ym...@jc...> - 2005-01-24 18:08:11
|
Hi there, The source code for J2ME/MIDP2.0 is available at http://j2me.jsch.org/jsch-0.1.17-J2MEMIDP20-20050124.zip and also an example for the remote execution on SSH2 is released. Thanks, -- ymnk |
From: <ym...@jc...> - 2005-01-19 16:38:57
|
Hi, +-From: "Michael Comeau" <mi...@br...> -- |_Date: Wed, 19 Jan 2005 11:22:27 -0500 ____________ | |Our platform is a customized version of Linux using the 2.4.25 |kernel on an AMD AU1100. This is used on a handheld vehicle |diagnostic device we built for DaimlerChrysler. |As stated, the JVM is Esmertec's Jeode/JBed (formerly Insignia's |Jeode). This JVM is a CDC Personal Profile implementation. Thank you for your info. |All of my testing thus far has been with the JCTerm application. |I have also tested on the PJava implementation of Jeode on the |same platform. JCTerm hung after prompting for a password. I |have not yet debugged the problem. If I get it running I will let |you know. I had a similar problem in running JSch on SHARP Zaurus PDA, where Linux kernel is running. In that problem, it had seemed that jsch had hung-ed, but I had found that it just had taken too long time to generate random numbers. I guess entropy pool for random numbers included in Linux kernel is empty. To work around this problem, I tried to use java.security.SecureRandom class from BC lightweight API and the problem has disappeared, but I had to obfuscate the jar file. Thanks, -- ymnk |
From: Michael C. <mi...@br...> - 2005-01-19 16:22:32
|
Hello Atsuhiko, Thank you for your assistance. We are so far very pleased with JSCH for J2ME. Our platform is a customized version of Linux using the 2.4.25 kernel on an AMD AU1100. This is used on a handheld vehicle diagnostic device we built for DaimlerChrysler. As stated, the JVM is Esmertec's Jeode/JBed (formerly Insignia's Jeode). This JVM is a CDC Personal Profile implementation. All of my testing thus far has been with the JCTerm application. I have also tested on the PJava implementation of Jeode on the same platform. JCTerm hung after prompting for a password. I have not yet debugged the problem. If I get it running I will let you know. Best regards, Mike -----Original Message----- From: Atsuhiko Yamanaka [mailto:ym...@jc...] Sent: Wednesday, January 19, 2005 10:32 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 14:57:52 -0500 ____________ | | When I used the BouncyCastle API zip files that are provided with the |JSCH J2ME implementation everything works fine. May I ask you about your platform or device(PDA)? You had written that you are using an embedded MIPS/Linux platform using the Jeode J2ME JVM by Esmertec. If it is well known platform, I want to share your success with others and want to add it to confirmed platform list. Thanks, -- ymnk |
From: <ym...@jc...> - 2005-01-19 15:36:37
|
Hi, +-From: "Michael Comeau" <mi...@br...> -- |_Date: Tue, 18 Jan 2005 14:57:52 -0500 ____________ | | When I used the BouncyCastle API zip files that are provided with the |JSCH J2ME implementation everything works fine. May I ask you about your platform or device(PDA)? You had written that you are using an embedded MIPS/Linux platform using the Jeode J2ME JVM by Esmertec. If it is well known platform, I want to share your success with others and want to add it to confirmed platform list. Thanks, -- ymnk |
From: <ym...@jc...> - 2005-01-19 02:56:54
|
Hi, +-From: "Michael Comeau" <mi...@br...> -- |_Date: Tue, 18 Jan 2005 14:57:52 -0500 __ | |I was originally using an updated version of BouncyCastle's |lightweight API that I downloaded directly from the BouncyCastle |website. It does not contain a LICENSE class. You are right. Now, I have confirmed that 'midp_classes.zip' and 'midp_crypto.zip' from BC project have not included the LICENSE class. Ok, I'll skip to check the existence of that class. Thank you for your feedbacks! Sincerely, -- ymnk |
From: Michael C. <mi...@br...> - 2005-01-18 19:57:56
|
Hello Atsuhiko , I had discovered this problem when I was tracing through the JSCH source code. I was originally using an updated version of BouncyCastle's lightweight API that I downloaded directly from the BouncyCastle website. It does not contain a LICENSE class. When I used the BouncyCastle API zip files that are provided with the JSCH J2ME implementation everything works fine. My question to you, why check for the LICENSE class if the BouncyCastle lightweight API is free with no license restriction (see below)? License Copyright (c) 2000 - 2004 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Thanks, Mike -----Original Message----- From: Atsuhiko Yamanaka [mailto:ym...@jc...] Sent: Tuesday, January 18, 2005 12:10 PM To: mi...@br... Cc: jsc...@li... Subject: Re: [JSch-J2ME] Problem running on MIPS using esmertec's Jeode J2ME CDC Personal Profile Hi again, I had misunderstood. I think there is not a problem in jcterm-0.0.6.zip Please confirm that the class 'org.bouncycastle.LICENSE' is accessible in your CLASSPATH. We respect for the LICENSE for BC API and if it is not accessible, we will stop to use BC API. Thanks, -- ymnk |
From: <ym...@jc...> - 2005-01-18 17:14:29
|
Hi again, I had misunderstood. I think there is not a problem in jcterm-0.0.6.zip Please confirm that the class 'org.bouncycastle.LICENSE' is accessible in your CLASSPATH. We respect for the LICENSE for BC API and if it is not accessible, we will stop to use BC API. Thanks, -- ymnk |
From: <ym...@jc...> - 2005-01-18 17:02:05
|
Hi, +-From: "Michael Comeau" <mi...@br...> -- |_Date: Tue, 18 Jan 2005 11:44:22 -0500 ____________ | |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) That must be my fault. jcterm-0.0.6.zip has included un-updated file. May ask you to replace jcterm-0.0.6/src/com/jcraft/jcterm/JCTermJ2MECDC.java with http://www.jcraft.com/jcterm/jcterm-0.0.6/src/com/jcraft/jcterm/JCTermJ2MECDC.java I hope com.jcraft.jsch.bc package will be used by that update. Thanks, -- 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 |
From: <ym...@jc...> - 2005-01-18 15:51:30
|
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 |
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 |
From: <ym...@jc...> - 2005-01-18 15:05:01
|
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 |
From: Michael C. <mi...@br...> - 2005-01-18 13:41:14
|
Hi, I am attempting to get JSCH for J2ME running on an embedded MIPS/Linux platform using the Jeode J2ME JVM by Esmertec. I am getting the following error when running the JCTerm sample. java.security.NoSuchAlgorithmException: SHA1WITHRSA Signature not available My environment looks like this: I have manually installed the SUN JCE and BouncyCastle API and set the CLASSPATH variable accordingly. java.security # List of providers and their preference orders (see java.security.readme): security.provider.1=sun.security.provider.Sun security.provider.2=com.sun.crypto.provider.SunJCE 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 Where /app/jsch is the directory where the JCTerm application is installed. Do I need a java.security entry for JSCH or BouncyCastle as a provider? Any assistance you can provide will be appreciated. I have not had much luck searching the Web. Regards, Mike Bright Star Engineering 150 Presidential Way Suite 220 Woburn, MA 01801 Tel 617.224.4919 FAX 617.224.4999 |