Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Cannot build pljava on Ubuntu 20.04 #4

Open
1 of 2 tasks
tuhaihe opened this issue Sep 12, 2024 · 2 comments
Open
1 of 2 tasks

[Bug] Cannot build pljava on Ubuntu 20.04 #4

tuhaihe opened this issue Sep 12, 2024 · 2 comments
Assignees

Comments

@tuhaihe
Copy link
Member

tuhaihe commented Sep 12, 2024

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?

  • Yes, I am willing to submit a PR!

Code of Conduct

@Baowen648
Copy link

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

@tuhaihe
Copy link
Member Author

tuhaihe commented Sep 12, 2024

I can build successfully on Rockylinux 9 + Java 8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants