如何在eclipse中运行HTML页面 [英] How to run a HTML page in eclipse

查看:633
本文介绍了如何在eclipse中运行HTML页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在html中写了一个网页。但是如果试图运行它就是说

-------------------- -------------------------------------------------- ----------



类型:类型状态报告



留言:/ Vinod /



描述:请求的资源不可用。

I have written one web page in html.But if was trying to run it is saying as
--------------------------------------------------------------------------------

TYPE:type Status report

message: /Vinod/

description: The requested resource is not available.

推荐答案

你可以让你的程序抛出针对操作系统的HTML页面 - 操作系统将决定如何处理HTML:



You can let your program throw the HTML-Page against the OS - the OS then will decide how to deal with the HTML:

String strPath = "/html/test.html";
Program p = Program.findProgram("html");
p.execute(strPath);





适用于任何文件扩展名 - 当操作系统无法报告时,操作系统将报告使用该文件。



works with any file extension - the OS will report back when it's not able to use the file.


Holly!

您创建了一个HTML页面,想要在服务器上查看它吗?

你不需要Eclipse来创建它而不是Tomcat来运行那个。



你需要一个简单的Apache。查看 XAMPP [ ^ ]。这是一台在Windows机器上运行的免费Web服务器。非常适合发展。你甚至可以在那里使用CMS系统,因为mySQL已被收录。
Holly!
You created a HTML-Page and want to check it out on a server?
You do NOT need Eclipse to create that and NOT a Tomcat to run that one.

You need a simple Apache. Check out XAMPP[^]. That is a free web server ruznning on your Windows machine. great for development. You can even use CMS Systems on there, cause a mySQL is inculded.


这篇关于如何在eclipse中运行HTML页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆