File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

launching HTML page in eclipse

nirjari patel
Ranch Hand

Joined: Apr 23, 2009
Posts: 374
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 ?

thanks
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

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
 
GeeCON Prague 2014
 
subject: launching HTML page in eclipse