about 9 years ago
When I run this method I get an error of socket Exception. (Permission denied) i.e,java.net.SocketException: socket failed: Can you please me to find its solution.
public void run() { // TODO Auto-generated method stub URL url = null; try { url = new URL("http url"); } catch (MalformedURLException me) { // TODO Auto-generated catch block me.printStackTrace(); } try { URLConnection uelCon = url.openConnection(); InputStreamReader inputStreamReader = new InputStreamReader(BufferedInputStream(myconn.getInputStream())); BufferedReader buffer = new BufferedReader(inputStreamReader); String traverse; StringBuilder builder = new StringBuilder(); while ((traverse=buffer.readLine()) != null) { builder.append(traverse); } } catch (IOException ioe) { // TODO Auto-generated catch block ioe.printStackTrace(); } super.run(); }
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Sign up using
0 Answer(s)