Версия ant: 1.10.12
Ubuntu 22.04.4 LTS
Сборка Netbeans завершается с ошибкой это сообщение:
Код: Выделить всё
-do-compile:
[nb-javac] Compiling 10 source files to /media/meca1/GITHUB-NETBEANS/netbeans/platform/api.dashboard/build/classes
[nb-javac] Ignoring source, target and bootclasspath as release has been set
[repeat] error: release version 17 not supported
[repeat] Usage: javac
[repeat] use --help for a list of possible options
[nbmerge] Failed to build target: all-api.dashboard
BUILD FAILED
/media/meca1/GITHUB-NETBEANS/netbeans/nbbuild/build.xml:635: The following error occurred while executing this line:
/media/meca1/GITHUB-NETBEANS/netbeans/nbbuild/build.xml:630: The following error occurred while executing this line:
/media/meca1/GITHUB-NETBEANS/netbeans/nbbuild/build.xml:665: The following error occurred while executing this line:
/media/meca1/GITHUB-NETBEANS/netbeans/nbbuild/build.xml:648: The following error occurred while executing this line:
/media/meca1/GITHUB-NETBEANS/netbeans/nbbuild/build.xml:630: The following error occurred while executing this line:
/media/meca1/GITHUB-NETBEANS/netbeans/nbbuild/build.xml:677: The following error occurred while executing this line:
/media/meca1/GITHUB-NETBEANS/netbeans/nbbuild/templates/common.xml:208: Compile failed; see the compiler error output for details
Пытался сменить версию Java на более старую.
Даже если в документации Netbeans указано, что 17 — это нормально.
Код: Выделить всё
export JAVA_HOME=/opt/jdk-11Подробнее здесь: https://stackoverflow.com/questions/783 ... inux-fails