cloudberrydb / pljava

PL/Java for Cloudberry Database, bringing Java™ Stored Procedures, Triggers, Functions, Aggregates, Operators, Types, etc., to CloudberryDB.
Other
0 stars 3 forks source link

[Bug] Cannot build pljava on Ubuntu 20.04 #4

Open tuhaihe opened 6 days ago

tuhaihe commented 6 days ago

Cloudberry Database and PL/Java version

the main branch

What happened

I cannot build pljava from the main branch.

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  6.387 s
[INFO] Finished at: 2024-09-12T14:22:10+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (pg_config to pgsql.properties) on project pljava-so: An Ant BuildException has occured: The following error occurred while executing this line:
[ERROR] /home/gpadmin/pljava/pljava-so/build.xml:85: Unable to create javax script engine for javascript
[ERROR] around Ant part ...<ant/>... @ 4:9 in /home/gpadmin/pljava/pljava-so/target/antrun/build-main.xml
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :pljava-so
make: *** [Makefile:50: build] Error 1

What you think should happen instead

It should be built successfully.

How to reproduce

git clone https://github.com/cloudberrydb/pljava.git
cd pljava
make

Operating System

NAME="Ubuntu" VERSION="20.04.6 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.6 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=focal UBUNTU_CODENAME=focal

Anything else

OS

NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

java --version

openjdk 11.0.24 2024-07-16
OpenJDK Runtime Environment (build 11.0.24+8-post-Ubuntu-1ubuntu320.04)
OpenJDK 64-Bit Server VM (build 11.0.24+8-post-Ubuntu-1ubuntu320.04, mixed mode, sharing)

$JAVA_HOME

/usr/lib/jvm/java-11-openjdk-amd64

/etc/environment setting

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-11-openjdk-amd64/bin"
JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64"

Are you willing to submit PR?

Code of Conduct

Zhangbaowen-Hashdata commented 6 days ago

I also encountered the same problem when compiling pljava in Ubuntu 22.04.4 LTS

tuhaihe commented 6 days ago

I can build successfully on Rockylinux 9 + Java 8.