It's not a secret anymore!
The moose likes IDEs, Version Control and other tools and the fly likes launching HTML page in eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "launching HTML page in eclipse" Watch "launching HTML page in eclipse" New topic

launching HTML page in eclipse

nirjari patel
Ranch Hand

Joined: Apr 23, 2009
Posts: 386
I have created an HTMl page using eclipse editor.

I want to launch this webpage. I clicked on browser, but it opened a different window. How can I launch this HTML page in eclipse ? I tried providing path also, but it also did not work. When I am trying to launch this HTML page, as "http://localhost/firstHTML.html" I am getting following error.
Error Summary
HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable. Detailed Error InformationModule IIS Web Core

Requested URL http://localhost:80/firstHTML.html
Physical Path C:\inetpub\wwwroot\firstHTML.html

Then I tried to launch this HYML page as "http://localhost/inetpub\wwwroot\firstHTML.html"

I got the same result again. So how can I launch this HTML page from the eclipse on my computer ?

Peter Johnson

Joined: May 14, 2008
Posts: 5852

What type of project did you create? Dynamic web project? Static web project?

When you created the project, what "Target Runtime" did you identify?

If you create, for example, a static web project and identify a server then you should be able to select "Run As" and indicate the server. The page should then display within a browser window within Eclipse.

Have you looked at the help text for Eclipse? The Web Tools Platform User's Guide (under Help | Help Contents) contains much of this information.

JBoss In Action
I agree. Here's the link:
subject: launching HTML page in eclipse
It's not a secret anymore!