Hi,
ich möchte gerne aus einem Java-Programm heraus den IE starten, jedoch soll dabei kein neuer Prozess gestartet werden.
Geht sowas?
bisher mache ich das so, aber hier wird der IE in einem neuen Prozess gestartet.
public void openWithBrowser(String url){
try{
Runtime rt = Runtime.getRuntime();
rt.exec( this.sysprop.getProperty(„iepath“)+" "+ this.sysprop.getProperty(„workingspace“) + url );
}
catch ( Exception /* IOException, URISyntaxException */ e )
{
System.out.println(e.getMessage() );
}
}
this.sysprop.getProperty(„iepath“) gibt den Pfad zu iexplore.exe
this.sysprop.getProperty(„workingspace“) gibt das aktuelle Verzeichnis