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

Unable to build the project using 'mvn install ' command #507

Open
ManojLL opened this issue Jan 4, 2024 · 4 comments
Open

Unable to build the project using 'mvn install ' command #507

ManojLL opened this issue Jan 4, 2024 · 4 comments

Comments

@ManojLL
Copy link

ManojLL commented Jan 4, 2024

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04 x86_64): Ubuntu 22.04
  • Java version (i.e., the output of java -version): JDK 11
  • Installed from Maven Central?: yes

Describe the problem

I hit the command mvn install to build project. then I get an error as below.

image

@Craigacp
Copy link
Collaborator

Craigacp commented Jan 4, 2024

What's your $JAVA_HOME set to?

@ManojLL
Copy link
Author

ManojLL commented Jan 9, 2024

@Craigacp I use JENV to manage multiplue java version in my machine. So my $JAVA_HOME is set as /home/manoj/.jenv/versions/1.8.0.202

@Craigacp
Copy link
Collaborator

Craigacp commented Jan 9, 2024

Maven pulls java from JAVA_HOME not the java it finds on your path, so it's using Java 8 to compile it and our minimum is 11. If you set your java home to 11 it should be fine.

@karllessard
Copy link
Collaborator

To do a full maven install locally without error, also add this parameter:

mvn install -Djavacpp.platform.host

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