| SSL under IDE problem [message #21623] | 
Mon, 31 January 2005 12:53  | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Got a strange behavior trying to debug or launch SSL program under eclipse.  
Say, I have something as simple as: 
 
         URL url = new URL("https://www.verisign.com"); 
          BufferedReader in = new BufferedReader( 
                 new  
InputStreamReader(url.openConnection().getInputStream())); 
              String line = null; 
              while ((line = in.readLine()) != null) { 
                 System.out.println(line); 
              } 
 
Can post the whole if need. Under the eclipse it throws: 
 
Caused by: java.security.NoSuchAlgorithmException: Cannot find any provider  
supporting RSA/ECB/PKCS1Padding 
 
What is most strange, it WORKS being launched from command line. I have  
rechecked that in both cases same VM is installed and used (1.5.01). Worse.  
I recompiled it to be used under 1.4.2 and make eclipse use this VM  
(Window/preferences/java/installed jre's), and it remained the same -- works  
fine with "java test" and throws exception under the IDE. The same .class  
code, without any recompilation. 
 
Please help. 
 
10x in advane. 
Sergey
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.07283 seconds