RunMojo compatibility problem with camel plugin - maven

I have installed Camel plugin for IntelliJ.
To start debugging, we must create an ad-hoc application
The problem is that it gives me that error running it, when building the war file
org/apache/camel/maven/RunMojo has been compiled by a more recent
version of the Java Runtime (class file version 55.0), this version of
the Java Runtime only recognizes class file versions up to 52.0
I can't just find where the problem is. I have checked all the java versions defined everywhere and seems fine...
in the POM
so what can be the problem? Mojo version is

The plugin has been compiled with JDK 11 and requires the minimum JDK version 11 to work with.

Related

How to fix sonar plugin issue in jenkins

How to avoid issue with sonar scanner plugin on Jenkins 2.289.2, plugin sonar 2.13.1
when compiling a project I got the error
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.0.2155:sonar (default-cli) on project maven-project:
Execution default-cli of goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.0.2155:sonar failed:
An API incompatibility was encountered while executing org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.0.2155:sonar: java.lang.UnsupportedClassVersionError:
org/sonar/batch/bootstrapper/EnvironmentInformation has been compiled by a more recent version of the Java Runtime (class file version 55.0),
this version of the Java Runtime only recognizes class file versions up to 52.0
It looks like an issue with the version of java but I would like to avoid changing my java version
Probably the compiled code you trying to run was compiled using java 11, but in env installed only java 8.
Try to install java 11 and make sure to update OS environment settings to point to the new JDK.
Java Details:
Java 8 uses major version 52
Java 11 uses major version 55

Missing external jar files in jdk 11

I have an application build with install4j and it uses openjdk-8. Now i want to change openjdk-8 to openjdk-11. My application only uses jre not full jdk. In jdk11 there is no separate jre.
But AdoptOpenJDK is providing jre separately for jdk-11 but there are some jar files are missing and therse is no lib\ext folder in jre.
My question is can i add these jar files manually in jre that i downloaded from AdoptOPenJDK?
According to the Oracle JDK Migration Guide for JDK 11, the lib/ext directory was removed starting in JDK 9, and the presence of this directory will force java or javac executables to exit. For details see topic Removed Extension Mechanism in JDK 9 on Page 15 of this Migration Guide.
As for JavaFX, JDK 11 no longer includes it. You can obtain JavaFX and include it in your installation as either modular (jmod) or non-modular (jar) files. For details see the Getting Started with JavaFX reference documentation, specifically the sub-topics under Runtime Images.
Both of these guides offer a lot of guidance for migrating to JDK 11 or newer (Oracle offers newer editions of their migration guide, up to JDK 15).

Maven download a dependency that is not in the pom.xml nore a library dependency

I have a question.
I'm working on a project generated using jhipster. I'm using maven as dependency management system.
I have added bouncycastle for jdk 1.4.
Now I want to switch to bouncycastle for jdk 1.5. So I changed the version in the pom.xml. But running ./mvnw, download the version for jdk 1.4. So I have removed it from the external libraries and completely removed it from the pom.xml. But running ./mvnw downloaded the version for jdk 1.4. I have even deleted the bouncycastle directory in .m2/repository. Yet I don't think that there are dependencies that need bouncycastle.
Please I need some help.

Update to java-8, Maven restore jre to old version in eclipse kepler

I'm trying to upgrade to Java 8.
I'm using Eclipse kepler an maven for my java projects.
Did the following:
Installed jdk 8.
Changed my JAVA_HOME system variable to point the new jdk.
In my Eclipse Kepler I installed:
Eclipse Java 8 Support For Kepler
Java 8 Facet for Web Tools for Eclipse Kepler SR2
Java™ 8 support for m2e for Eclipse Kepler SR2
Then for each of my projects I made sure to update project facets, java compiler and jre (in java build path) to version 1.8.
also changed in each pom.xml the java version to 1.8.
The problem occurs when I do maven-->update project, this causes the project facets, compiler and jre settings to jump to 1.4 for some reason.
I can then manually (again) change those back to 1.8 and everything is fine but every time I update a maven dependency or run maven-->update project I encounter the issue again.
Any suggestions?
I had the same problem, I have
[Java 8 support for Eclipse Kepler SR2 ]
Eclipse Java 8 Support (for Kepler SR2) JDT, PDE
Java™ 8 support for m2e for Eclipse Kepler SR2
installed.
in Eclipse go to Help -> Eclipse Marketplace...,
go to the Install tab and Update those three (or uninstall and install again).
I also have 1.8 in pom.xml and it works when using Maven -> Update Project

Gradle configuration on AndroidStudio 1.0X

I have downloaded a fresh copy of AndroidStudio 1.02 which comes with gradle 2.2.1. My JAVA_HOME points to a java 1.7 installation. In fact I do not even have java 1.4.
Yet I receive this error:
Error:Gradle 2.2.1 requires Java 6 or later to run. Your build is currently configured to use Java 4.
After searching for an hour on the internet and digging into AndroidStudio settings I cannot get it to work. I'll appreciate if someone can help.
Try File->Other Settings->Default Project Structure and set JDK Location to Java 6 or later

Resources