Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Need to open browser externally.. getting error
Need to open browser externally.. getting error [message #1223451] Mon, 23 December 2013 12:28
no name no name is currently offline no name no name
Messages: 28
Registered: February 2012
Junior Member
Hi All,


I have one html file present in my system and I am trying to Open browser in eclipse externally using below code
String URLToOpenOuterFrame = homepage.htm;
PlatformUI.getWorkbench().getBrowserSupport().getExternalBrowser().openURL(new URL("http://"+URLToOpenOuterFrame));


But getting following exception:

java.net.MalformedURLException: For input string: "homepage.htm"
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)


Any help would really appreciate
Thanks Smile



Previous Topic:Plugin not available in marketplace search within eclipse
Next Topic:open one browser and one editor in same eclipse workbench
Goto Forum:
  


Current Time: Thu Sep 18 06:04:21 GMT 2014

Powered by FUDForum. Page generated in 0.01825 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software