Security.addProvider... -error: variable Security not found ...

I am trying to access a servlet on a server using the following code

System.getProperties().put("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");Security.addProvider(newcom.sun.net.ssl.internal.ssl.Provider());

//URL url = new URL("http://64.193.28.193/servlet/secure?name="+Username+"?pass="+Password);

URL url = new URL("https://64.192.28.193/secure");

URLConnection conn=url.openConnection();

conn.setAllowUserInteraction(true);

BufferedReader in = new BufferedReader(newInputStreamReader(conn.getInputStream()));

Info = in.readLine();

in.close();

The problem come when I try to compile and it doesn't recognize Security? I have JSSE installed but I still cannot see it. Is this a JSSE problem?Does anyone know how to add the jar files to Jbuilder?

[842 byte] By [etchua1] at [2007-9-26 3:01:47]
# 1

I was having the same problem, everywhere I see people referring to Security.addProvider() and in the API docs its listed as part of java.lang so Security.addProvider() SHOULD work but...

I found what worked for me in another post which is to use java.security.Security.addProvider(), may work for you too. But I would still like to know why I can't use it the other way?

rgatton at 2007-6-29 11:00:10 > top of Java-index,Archived Forums,Java Programming...