Я пытаюсь открыть HTML файл из локальной (в моей системе) программы Java. Я попробовал некоторые из программы, полученные через переполнение стека, но это не работает.
Для EG: У меня есть этот небольшой HTML файл.
<html>
<head>
Test Application
</head>
<body>
This is test application
</body>
</html>
Мой код Java:
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();
Любое решение или советы оценены.