tuhaihe commented on issue #150:
URL: https://github.com/apache/cloudberry-pxf/issues/150#issuecomment-5581357661
Hi, in the Ubuntu 24.04:
```
gpadmin@ip-172-31-40-2:~/apache-cloudberry-pxf-2.2.0-incubating$ export
GOPATH=$HOME/go
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
gpadmin@ip-172-31-40-2:~/apache-cloudberry-pxf-2.2.0-incubating$ export
JAVA_HOME=/usr/lib/jvm/java-
java-1.21.0-openjdk-amd64/ java-21-openjdk-amd64/
gpadmin@ip-172-31-40-2:~/apache-cloudberry-pxf-2.2.0-incubating$ export
JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64/
gpadmin@ip-172-31-40-2:~/apache-cloudberry-pxf-2.2.0-incubating$ javac
--version
javac 21.0.12
gpadmin@ip-172-31-40-2:~/apache-cloudberry-pxf-2.2.0-incubating$ java
--version
openjdk 21.0.12 2026-07-21
OpenJDK Runtime Environment (build 21.0.12+8-1-24.04-Ubuntu)
OpenJDK 64-Bit Server VM (build 21.0.12+8-1-24.04-Ubuntu, mixed mode,
sharing)
gpadmin@ip-172-31-40-2:~/apache-cloudberry-pxf-2.2.0-incubating$ which javac
/usr/bin/javac
gpadmin@ip-172-31-40-2:~/apache-cloudberry-pxf-2.2.0-incubating$ make
===> Compiling [external-table] module <===
make -C external-table
make[1]: Entering directory
'/home/gpadmin/apache-cloudberry-pxf-2.2.0-incubating/external-table'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory
'/home/gpadmin/apache-cloudberry-pxf-2.2.0-incubating/external-table'
===> Compiling [external-table] module <===
make -C fdw
make[1]: Entering directory
'/home/gpadmin/apache-cloudberry-pxf-2.2.0-incubating/fdw'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory
'/home/gpadmin/apache-cloudberry-pxf-2.2.0-incubating/fdw'
===> Compiling [cli] module <===
make -C cli
make[1]: Entering directory
'/home/gpadmin/apache-cloudberry-pxf-2.2.0-incubating/cli'
go build -v -ldflags "-X pxf-cli/cmd.version=2.2.0" -o build/pxf-cli pxf-cli
make[1]: Leaving directory
'/home/gpadmin/apache-cloudberry-pxf-2.2.0-incubating/cli'
===> Compiling [server] module <===
make -C server
make[1]: Entering directory
'/home/gpadmin/apache-cloudberry-pxf-2.2.0-incubating/server'
./gradlew -Pversion=2.2.0 -PapiVersion=16 stage -x test
> Task :pxf-api:compileJava FAILED
┌-------------------------------------------------------┐
│ Total Results: 0 tests, 0 passed, 0 failed, 0 skipped │
└-------------------------------------------------------┘
[Incubating] Problems report is available at:
file:///home/gpadmin/apache-cloudberry-pxf-2.2.0-incubating/server/build/reports/problems/problems-report.html
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':pxf-api:compileJava'.
> Error while evaluating property 'javaCompiler' of task
':pxf-api:compileJava'.
> Failed to calculate the value of task ':pxf-api:compileJava' property
'javaCompiler'.
> Toolchain installation '/usr/lib/jvm/java-21-openjdk-amd64' does not
provide the required capabilities: [JAVA_COMPILER]
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
Deprecated Gradle features were used in this build, making it incompatible
with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings
and determine if they come from your own scripts or plugins.
For more on this, please refer to
https://docs.gradle.org/8.14.4/userguide/command_line_interface.html#sec:command_line_warnings
in the Gradle documentation.
BUILD FAILED in 2s
5 actionable tasks: 1 executed, 4 up-to-date
make[1]: *** [Makefile:92: stage-notest] Error 1
make[1]: Leaving directory
'/home/gpadmin/apache-cloudberry-pxf-2.2.0-incubating/server'
make: *** [Makefile:47: server] Error 2
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]