Re: [JSch-users] NoSuchAlgorithmException: Algorithm DH not available (Mac)
Status: Alpha
Brought to you by:
ymnk
From: Dave H. <dhe...@in...> - 2004-04-02 15:27:43
|
I had the same problem in Eclipse on my Win XP box. I still don't exactly understand it, but it came down to this: it worked when the default classpath was used to run the code, and it didn't work when I didn't have the "use default classpath" checkbox checked under run's classpath tab. What I had to do was remove the default bootstrap classes and add each necessary jar manually. - Dave Noah Vihinen <unq...@vi...> wrote: >Cc: jsc...@li... >From: Noah Vihinen <unq...@vi...> >Subject: Re: [JSch-users] NoSuchAlgorithmException: Algorithm DH not available (Mac) >Date: Thu, 1 Apr 2004 09:01:58 -0500 >To: ym...@jc... (Atsuhiko Yamanaka) > >So here's the non-jsch issue, > >I tried the test program from my IDE (Eclipse for OSX), and it throws >the NoSuchAlgorithmException. However, when I run the same class from >the command line on the same OSX box, no problems. Same result with my >jsch-enabled program. > >I've further narrowed the problem down to a setting in my eclipse >workspace, as the same program works with the same version of eclipse >if I do a fresh install and start with a new workspace location. > >Looks like it's time to jump onto the eclipse mailing list. > >Thanks for your help, >Noah > >On Mar 31, 2004, at 8:54 PM, Atsuhiko Yamanaka wrote: > > > >>Hi, >> >> +-From: Noah Vihinen <unq...@vi...> -- >> |_Date: Wed, 31 Mar 2004 09:41:49 -0500 _________ >> | >> |Hello, I've been trying to get jsch working on OSX. I always get >> |the 'Algorithm DH not available' error. >> >> >>May I ask you to compile the fillowing class and run it on your OSX? >> >>class foo{ >> public static void main(String[] arg){ >> try{ >> java.security.KeyPairGenerator.getInstance("DH"); >> javax.crypto.KeyAgreement.getInstance("DH"); >> } >> catch(Exception e){ System.err.println(e); } >> } >>} >> >>Can you run it without an exception? >>If you get an exception, there must be problems in the availability >>of JCE. >> >> >>Thanks, >>-- >>ymnk >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by: IBM Linux Tutorials >>Free Linux tutorial presented by Daniel Robbins, President and CEO of >>GenToo technologies. Learn everything from fundamentals to system >>administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >>_______________________________________________ >>JSch-users mailing list >>JSc...@li... >>https://lists.sourceforge.net/lists/listinfo/jsch-users >> >> >> > > > > >--__--__-- > >_______________________________________________ >JSch-users mailing list >JSc...@li... >https://lists.sourceforge.net/lists/listinfo/jsch-users > > >End of JSch-users Digest > > |