I try to open HTML file from local (In my system) by Java program. I tried some of the program got through stack overflow but its not working as much.
For E.G.: I have this small HTML file.
<html>
<head>
Test Application
</head>
<body>
This is test application
</body>
</html>
My Java code:
Runtime rTime = Runtime.getRuntime();
String url = "D:/hi.html";
String browser = "C:/Program Files/Internet Explorer/iexplore.exe ";
Process pc = rTime.exec(browser + url);
pc.waitFor();
Any solution or tips appreciated.