hi i am trying to connect to a sitte using a proxy at the moment im using tor as localhost but when browser launched it aint launched through tor just my norml connection any suggestions?
code is below:
public void launcher(String site){ String input=site; try { //Desktop.getDesktop().browse(new URI("input")); if( !java.awt.Desktop.isDesktopSupported() ) { System.err.println( "Desktop is not supported (fatal)" ); System.exit( 1 ); } if ( input.length() == 0 ) { System.err.println( "Empty string in launcher" ); System.exit( 0 ); } java.awt.Desktop desktop = java.awt.Desktop.getDesktop(); if( !desktop.isSupported( java.awt.Desktop.Action.BROWSE ) ) { System.err.println( "Desktop doesn't support the browse action (fatal)" ); System.exit( 1 ); } String web=input; try { System.setProperty("SOCKS.proxyHost", "127.0.0.1");//tor local host System.setProperty("SOCKS.proxyPort", "9050"); java.net.URI uri = new java.net.URI( web );//site to visit desktop.browse( uri ); } catch ( Exception e ) { System.err.println( e.getMessage() ); } }catch(Exception t){ System.out.println("launcher fuckup"); } }//end launcher