在 Netbeans IDE 外部启动 Apache Tomcat

发布于 2024-10-18 22:31:58 字数 698 浏览 2 评论 0原文

我正在尝试了解有关 Java Servlet 和 Java Servlet 的更多信息。 JSP,使用 NetBeans IDE 和普通的旧文本编辑器。我计划学习在线 NetBeans 电子商务 教程,并使用一本可以引导您在不使用 IDE 的情况下进行操作的书。在线教程显然进展顺利,因为它向您展示了使用 NetBeans IDE 的步骤。然而,我的问题是关于我想开始的其他教程(这本书)。

当谈到 Apache 和配置开发环境时,我是一个菜鸟,所以这可能看起来是一个愚蠢的问题。我想手动启动 Tomcat(在 NetBeans IDE 之外)来学习本书的教程。但是,与 NetBeans“完整”下载一起提供的 Apache 安装似乎并未作为服务安装,也没有显示在我的 Windows 7 计算机上的已安装程序列表中。所以我对如何将其配置为手动启动有点迷失。我正在考虑下载 Tomcat 的 msi 安装程序,但随后我想知道让它与 NetBeans 一起使用是否也会是一个问题。

有人能指出我正确的方向吗?我尝试使用 ApacheTomcat 的 /bin 目录中的startup.bat 启动它,但它所做的只是打开 cmd.exe 片刻,而我的浏览器中的 localhost:8080 什么也不做。

我再次为这个愚蠢的问题道歉。

I'm in the process of trying to learn more about Java Servlets & JSP, using the NetBeans IDE and using a plain old text editor. I'm planning on going through an online NetBeans E-commerce tutorial, and using a book which leads you along without the use of an IDE. The online tutorial is obviously going great since it shows you the steps using the NetBeans IDE. However, the question I have is in regards to the other tutorial I would like to start on (the book).

I'm a noob when it comes to Apache and configuring your development environment, so this may seem like a dumb question. I would like to start Tomcat manually (outside of the NetBeans IDE) to work on the book's tutorial. However, it seems the install of Apache that came along with the "Full" download of NetBeans is not installed as a service, nor does it show up under the list of installed programs on my Windows 7 machine. So I'm kind of lost as to how I can configure it to start manually. I was thinking of downloading the msi installer for Tomcat, but then I would have to wonder if getting it to work with NetBeans would be a problem as well.

Can anyone point me in the right direction? I've tried starting it using startup.bat in the /bin directory of ApacheTomcat but all it does is open cmd.exe for a split second, and localhost:8080 in my browser does nothing.

Once again, I apologize for the dumb question.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

狂之美人 2024-10-25 22:31:58

不要单击startup.bat,而是从命令提示符运行它。您将看到错误并能够纠正它们。可能某些环境变量未设置。请参阅这些说明如何执行此操作(可能需要在文档中找到与您安装的 Apache Tomcat 版本相对应的类似部分)。

或者,从 http://tomcat.apache.org/ 下载最新版本的 Apache Tomcat 并安装作为一项服务。

Don't click on startup.bat, but run it from the command prompt. You will see the errors and will be able to rectify them. It's likely that some envrionmental variables are not set. See these instructions how to do that (may need to find a similar section in the docs that correspond the release of Apache Tomcat you have installed).

Alternatively, download the most recent version of Apache Tomcat from http://tomcat.apache.org/ and install it as a service.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文