Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java how to open a link

Runtime rt = Runtime.getRuntime();
String url = "https://www.example.com";
try {
	rt.exec("rundll32 url.dll,FileProtocolHandler " + url);
} catch (IOException ioException) {
	ioException.printStackTrace();
}
 
PREVIOUS NEXT
Tagged: #java #open #link
ADD COMMENT
Topic
Name
6+8 =