netbeans_什么是NetBeans?

netbeans

NetBeans is a popular software development platform, mostly for Java, that provides wizards and templates to help developers build applications quickly and easily. It includes modular components across a wide range of tools and features an IDE (integrated development environment) that allows developers to create applications using a GUI.

NetBeans是一个流行的软件开发平台,主要用于Java,它提供向导和模板来帮助开发人员快速轻松地构建应用程序。 它包括跨各种工具的模块化组件,并具有一个IDE(集成开发环境),允许开发人员使用GUI创建应用程序。

While NetBeans is primarily a tool for Java developers, it also supports PHP, C and C++ and HTML5.

尽管NetBeans主要是Java开发人员的工具,但它也支持PHP,C, C ++和HTML5。

NetBeans历史 ( NetBeans History )

NetBeans' origins stem from a university project at the Charles University of Prague in the Czech Republic in 1996. Charmingly called Zelfi IDE for Java (a takeoff on the programming language Delphi), NetBeans was the first Java IDE ever. The students were enthused about it and worked to turn it into a commercial product. It In the late 90's, it was acquired by Sun Microsystems which integrated it into its set of Java tools and then turned it over to open source. By June 2000, the original netbeans site was launched.

NetBeans的起源来自1996年在捷克共和国布拉格查尔斯大学的一个大学项目。这个迷人的名字叫Zelfi   NetBeans是Java的IDE(一种编程语言Delphi的发展),是有史以来第一个Java IDE。 学生们对此非常感兴趣,并努力将其转变为商业产品。 它在90年代后期被Sun Microsystems收购,并将其集成到其Java工具集中,然后将其移交给开源。 到2000年6月, 原始的netbeans站点已启动。

Oracle purchased Sun in 2010 and thus also acquired NetBeans, which continues as an open source project sponsored by Oracle. It now resides at ​www.netbeans.org.

Oracle在2010年收购了Sun,因此也收购了NetBeans,NetBeans继续作为Oracle赞助的开源项目。 现在居住在www.netbeans.org

Netbeans可以做什么? ( What Can Netbeans Do? )

The philosophy behind NetBeans is to provide an extensibleIDE that provides all the tools necessary to develop desktop, enterprise, web and mobile applications. The ability to install plug-ins allows developers to tailor the IDE to their individual development tastes.

NetBeans背后的理念是提供一个可扩展的IDE,它提供开发台式机,企业,Web和移动应用程序所需的所有工具。 安装插件的功能使开发人员可以根据自己的开发喜好定制IDE。

In addition to the IDE, NetBeans includes the NetBeans Platform, a framework for building applications with Swing and JavaFX, the Java GUI toolkits. This means that NetBeans provides pluggable menu and toolbar items, helps manage windows and perform other tasks when developing a GUI.

除了IDE外,NetBeans还包括NetBeans平台,该框架用于使用Swing和JavaFX(Java GUI工具包)构建应用程序。 这意味着NetBeans提供可插入的菜单和工具栏项,有助于在开发GUI时管理窗口并执行其他任务。

Various bundles can be downloaded, depending on the primary programming language you use (e.g, Java SE, Java SE and JavaFX, Java EE). Although it doesn't really matter, as you can pick and choose which languages to program with through the plug-in manager.

可以下载各种捆绑软件,具体取决于您使用的主要编程语言(例如Java SE,Java SE和JavaFX,Java EE)。 尽管并不重要,但是您可以通过插件管理器选择要编程的语言。

主要特征 ( Primary Features )

  • Swing GUI Builder: Drag and drop Swing components to build an application's GUI.

    Swing GUI生成器:拖放Swing组件以构建应用程序的GUI。

  • JavaFX UI toolkit: Work with JavaFX in the same way as Swing, easily incorporating its components.

    JavaFX UI工具箱 :以与Swing相同的方式使用JavaFX,可以轻松地合并其组件。

  • Developer Collaboration: Work with other developers on using NetBeans through the Netbeans Community which includes forums, tutorials, training materials and the "NetBeans Dream Team", a group of committed enthusiasts.

    开发人员协作:与其他开发人员一起通过Netbeans社区使用NetBeans,其中包括论坛,教程,培训材料和“ NetBeans梦想团队”,这是一群忠实的爱好者。

  • Netbeans Platform: The modular NetBeans Platform provides APIs to help make desktop applications easier by handling some of the more common tasks involved in developing Swing applications.

    Netbeans平台:模块化的NetBeans平台提供API,通过处理开发Swing应用程序中涉及的一些较常见的任务来帮助简化桌面应用程序。

Netbeans版本和要求 ( Netbeans Releases and Requirements )

NetBeans is cross-platform, meaning that it runs on any platform that supports the Java Virtual Machine including Windows, Mac OS X, Linus, and Solaris. 

NetBeans是跨平台的,这意味着它可以在支持Java虚拟机的任何平台上运行,包括Windows,Mac OS X,Linus和Solaris。

Although open source — meaning that it is run by the community — NetBeans adheres to a regular, rigorous release schedule. The most recent release was 8.2 in October 2016.

尽管是开源的,这意味着它是由社区运行的,但是NetBeans遵守定期,严格的发布时间表。 最新版本是2016年10月的8.2。

NetBeans runs on the Java SE Development Kit (JDK) which includes the Java Runtime Environment as well as a set of tools for testing and debugging Java applications. The version of the JDK required depends on the NetBeans version you are using.  All these tools are free.

NetBeans在Java SE开发工具包(JDK)上运行,该工具包包括Java运行时环境以及用于测试和调试Java应用程序的一组工具。 所需的JDK版本取决于您使用的NetBeans版本。 所有这些工具都是免费的。

翻译自: https://www.thoughtco.com/what-is-netbeans-2034251

netbeans

### NetBeans 中服务器目录的位置与配置路径 NetBeans 的服务器目录位置主要取决于所使用的服务器类型以及安装方式。以下是关于 NetBeans 中服务器目录位置和配置路径的详细说明: #### 1. **GlassFish Server Open Source Edition** 在 NetBeans IDE 中,如果使用的是 GlassFish Server Open Source Edition,则其默认安装路径通常为: - Windows: `C:\Program Files\glassfish-x.x` 或者用户自定义的安装路径。 - macOS/Linux: `/usr/local/glassfish-x.x` 或者用户指定的路径。 若需要在 NetBeans 中配置或查看 GlassFish 服务器的路径,可以通过以下步骤完成: 1. 打开 NetBeans IDE。 2. 点击菜单栏中的 **工具** > **服务器**。 3. 在弹出的对话框中,点击 **添加服务器** 按钮。 4. 选择 **GlassFish Server** 并点击 **下一步**。 5. 输入服务器的名称,并指定 GlassFish 的安装目录[^1]。 #### 2. **Apache Tomcat** 对于 Apache Tomcat,NetBeans 的安装程序可能会将其安装到特定的目录中,具体如下: - Windows: 默认路径可能是 `C:\Program Files\Apache Software Foundation\tomcat-x.x` 或者 `C:\Users\<用户名>\AppData\Roaming\NetBeans\<版本号>\apache-tomcat-x.x`。 - macOS/Linux: 安装路径可能为 `/Applications/NetBeans/apache-tomcat-maj.min.patch` 或者用户手动指定的路径[^2]。 若需要在 NetBeans 中配置或查看 Tomcat 的路径,可以按照以下步骤操作: 1. 打开 NetBeans IDE。 2. 点击菜单栏中的 **工具** > **服务器**。 3. 在弹出的对话框中,点击 **添加服务器** 按钮。 4. 选择 **Apache Tomcat** 并点击 **下一步**。 5. 输入服务器的名称,并指定 Tomcat 的安装目录。需要注意的是,某些情况下可能需要调整权限设置以确保正常运行。 #### 3. **Web 应用的发布路径** 当在 NetBeans 中创建一个基于 Tomcat 的 Web 应用时,应用的发布路径通常是 Tomcat 的 `webapps` 目录。例如: - Windows: `C:\Program Files\Apache Software Foundation\tomcat-x.x\webapps` - macOS/Linux: `/usr/local/tomcat/webapps` 或 `/Applications/NetBeans/apache-tomcat-maj.min.patch/webapps` 此外,Tomcat 的 `server.xml` 文件中会定义具体的访问路径和映射关系。例如,通过以下配置可以指定工程文件的目录和访问路径[^5]: ```xml <Context docBase="servlets-examples" path="/servlets-examples" reloadable="true"/> ``` 上述配置表示,客户端可以通过 `http://localhost:8084/servlets-examples/` 访问该应用。 #### 4. **其他注意事项** - 如果使用的是 Maven 项目,则项目的构建和部署路径可能会有所不同,具体取决于 Maven 的配置文件 `pom.xml` 中的设置[^3]。 - 在某些情况下,可能需要手动调整 NetBeans 的服务器配置文件(如 `netbeans.conf`)以适应不同的环境需求[^4]。 ### 示例代码:检查 Tomcat 配置文件 以下是一个简单的脚本,用于检查 Tomcat 的 `server.xml` 文件是否包含正确的上下文路径配置: ```bash #!/bin/bash # 检查 Tomcat server.xml 文件 TOMCAT_CONF="/path/to/tomcat/conf/server.xml" if [ -f "$TOMCAT_CONF" ]; then echo "Tomcat server.xml found." grep -i "<Context" $TOMCAT_CONF else echo "Tomcat server.xml not found!" fi ```
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值