netbeans

apacheApache-2.0活跃维护

Apache NetBeans 是一个基于 Java 的开源集成开发环境,支持 Java、JavaScript、PHP 等多种语言的代码编辑、调试与构建,也可作为 NetBeans 平台开发桌面应用。

Apache NetBeans

31发布于 2026-08-05 12:16 UTC3,149star944fork同步于 2026-11-10 05:41 UTC

怎么上手

从 README 代码块原样提取,可能是其中一种安装方式
git clone https://github.com/apache/netbeans.git
硬件要求

README 没有说明硬件要求。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

这个项目的说明还在生成中,先参考下面「最近发版」和 README。

最近发版

5 个版本31
  1. 32-rc3Apache NetBeans 32-rc3pre-release2026-11-04 · 2026-11-04 11:40 UTC
    查看更新说明

    [!NOTE] Platform users: Setting content type by mime type String for NetBeans editor kits is no longer supported and will fail on JDK 27 and later, obtain the EditorKit instead: jtextarea.setContentType("text/x-properties") => jtextarea.setEditorKit(CloneableEditorSupport.getEditorKit("text/x-properties")) Set the sytem property nb.disable.editorkit.hack=true to disable this warning (https://github.com/apache/netbeans/issues/9523, https://github.com/apache/netbeans/pull/9721). Symptom: JEditorPane renders with plain text kit

    What's Changed

    Java

    Versioning

    Other Changes

    New Contributors

    Full Changelog: https://github.com/apache/netbeans/compare/32-rc2...32-rc3

  2. 32-rc2Apache NetBeans 32-rc2pre-release2026-10-22 · 2026-10-22 12:57 UTC
    查看更新说明

    [!NOTE] Platform users: Setting content type by mime type String for NetBeans editor kits is no longer supported and will fail on JDK 27 and later, obtain the EditorKit instead: jtextarea.setContentType("text/x-properties") => jtextarea.setEditorKit(CloneableEditorSupport.getEditorKit("text/x-properties")) Set the sytem property nb.disable.editorkit.hack=true to disable this warning (https://github.com/apache/netbeans/issues/9523, https://github.com/apache/netbeans/pull/9721). Symptom: JEditorPane renders with plain text kit

    What's Changed

    Maven

    Java

    Editor

    Other Changes

    Full Changelog: https://github.com/apache/netbeans/compare/32-rc1...32-rc2

  3. 32-rc1Apache NetBeans 32-rc1pre-release2026-10-15 · 2026-10-15 14:19 UTC
    查看更新说明

    [!NOTE] Platform users: Setting content type by mime type String for NetBeans editor kits is no longer supported and will fail on JDK 27 and later, obtain the EditorKit instead: jtextarea.setContentType("text/x-properties") => jtextarea.setEditorKit(CloneableEditorSupport.getEditorKit("text/x-properties")) Set the sytem property nb.disable.editorkit.hack=true to disable this warning (https://github.com/apache/netbeans/issues/9523, https://github.com/apache/netbeans/pull/9721). Symptom: JEditorPane renders with plain text kit

    What's Changed

    Gradle

    Maven

    Ant

    Java

  4. 31Apache NetBeans 31最新正式版2026-08-05 · 2026-08-05 12:16 UTC

    What's Changed

    Gradle

    Maven

    Ant

    Java

    JavaFX

    PHP

  5. 31-rc2Apache NetBeans 31-rc2pre-release2026-07-23 · 2026-07-23 10:47 UTC
    查看更新说明

    What's Changed

    Maven

    Ant

    Java

    Enterprise

    Editor

    Platform

    Language Server Protocol

    Full Changelog: https://github.com/apache/netbeans/compare/31-rc1...31-rc2

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Apache NetBeans

    Apache NetBeans is an open source development environment, tooling platform, and application framework.

    Build status

    • GitHub actions
      • Build Status
      • Profiler Lib Native Binaries
      • NetBeans Native Execution Libraries
    • Apache Jenkins:
      • Linux: Build Status
      • Windows: Build Status
    • License Status ( Apache Rat and ant verify-libs-and-licenses )
      • Build Status

    Requirements

    • Git
    • Ant
    • JDK 21 or above (to build and run NetBeans)
    Notes:
    • NetBeans license violation checks are managed via the rat-exclusions.txt file.
    • Set JAVA_HOME and ANT_HOME appropriately or leave them undefined.

    Building NetBeans

    Build the default release config (See the cluster.config property.)

    $ ant build
    

    Build the basic project (mainly Java features):

    $ ant -Dcluster.config=basic build
    

    Build the full project (may include clusters which are not be in the release):

    $ ant -Dcluster.config=full build
    

    Build the NetBeans Platform:

    $ ant -Dcluster.config=platform build
    

    Cleanup:

    $ git clean -Xdf
    
    Notes:
    • You can also use php, enterprise, etc. See the cluster.properties file.
    • Once built, you can simply open individual modules of interest with NetBeans and run/rebuild/debug them like any other project
    • The nbbuild directory should contain the portable NetBeans zip
    Generating Javadoc

    Build javadoc:

    $ ant javadoc
    
    Notes:
    • Run javadoc-nb task in Netbeans to run the javadoc build and display it in a web browser.

    Running NetBeans

    Quick test run:

    $ ant tryme
    

    or run the portable zip distribution:

    1. extract the zip found in nbbuild to a directory other than nbbuild
    2. run the netbeans launcher found in netbeans/bin, optionally specifying a custom userdir

    example:

    $ netbeans --userdir /tmp/nbtestdir1
    

    Some useful Launcher Options

      --jdkhome <path>      path to JDK used as runtime (and default JDK for projects)
      --userdir <path>      use specified directory to store user settings
      --cachedir <path>     use specified directory to store user cache, must be different from userdir
      --fontsize <size>     set the base font size of the user interface, in points
      -J<jvm_option>        pass <jvm_option> to JVM
      --help                list more options
    

    Get In Touch

    Download

    Reporting Bugs

    Log, Config and Cache Locations

    • start config (JVM settings, default JDK, userdir, cachedir location and more):
      netbeans/etc/netbeans.conf
    • user settings storage (preferences, installed plugins, logs):
      system dependent, see Help -> About for concrete location
    • cache files (maven index, search index etc):
      system dependent, see Help -> About for concrete location
    • default log location (tip: can be inspected via View -> IDE Log):
      $DEFAULT_USERDIR_ROOT/var/log/messages.log

    Note: removing/changing the user settings directory will reset NetBeans to first launch defaults

    Other Repositories

    Full History

    The origins of the code in this repository are older than its Apache existence. As such significant part of the history (before the code was donated to Apache) is kept in an independent repository. To fully understand the code you may want to merge the modern and ancient versions together:

    $ git clone https://github.com/apache/netbeans.git
    $ cd netbeans
    $ git log platform/uihandler/arch.xml
    

    This gives you just few log entries including the initial checkin and change of the file headers to Apache. But then the magic comes:

    $ git remote add archive https://github.com/codelerity/netbeans-releases.git
    $ git fetch archive # this takes a while, the history is huge!
    $ git replace 6daa72c98 32042637 # the 1st donation
    $ git replace 6035076ee 32042637 # the 2nd donation
    

    When you search the log, or use the blame tool, the full history is available:

    $ git log platform/uihandler/arch.xml
    $ git blame platform/uihandler/arch.xml
    

    You can browse the archived repo here.

    Many thanks to Emilian Bold who created the original archive repository.