I get an error when I try to build the project
i get this error java: error: release version 5 not supported
enter image description here
Related
I am trying to convert my jar file using graalvm native image. However, it gives an error like,
native-image -jar NativeTest2.jar
Error: Platform specified as windows-amd64 isn't supported.
Error: Image build request failed with exit status 1
After upgrading to jooq 3.17.1 I get the following error:
Error:
/home/runner/work/waste-coordinator/waste-coordinator/webapp/target/generated-sources/jooq/com/myapp/portal/backend/jooq/tables/LoadView.java:[521,84]
text blocks are not supported in -source 11 Error: (use -source 15
or higher to enable text blocks)
It appears to me that it is generating source that is not compatible with JDK11. Is there a flag in the generator somewhere that can make it generate JDK 11 compatible code?
Edit: now I am getting the following compile error
[ERROR] COMPILATION ERROR : [INFO]
------------------------------------------------------------- [ERROR] /usr/local/code/sferion/WasteCoordinator/data/src/main/java/com/wastecoordinator/data/JOOQGenerator.java:[4,24]
cannot access org.jooq.codegen.GenerationTool bad class file:
/Users/benstpierre/.m2/repository/org/jooq/jooq-codegen/3.17.1/jooq-codegen-3.17.1.jar(/org/jooq/codegen/GenerationTool.class)
class file has wrong version 61.0, should be 55.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
Is jooq 3.17 not compatible with JDK 11?
You can download the right distribution to work with JDK 11 from here if you're licensed:
https://www.jooq.org/download/versions
Note that starting from jOOQ 3.17, the jOOQ Open Source Edition increased the baseline JDK version to Java 17, see:
https://github.com/jOOQ/jOOQ/issues/12430
https://blog.jooq.org/3-17-0-release-with-computed-columns-audit-columns-pattern-matching-reactive-transactions-and-kotlin-coroutine-support/
jOOQ is a bit early here, given that Spring will increase their own baseline only later in 2022:
https://spring.io/blog/2021/09/02/a-java-17-and-jakarta-ee-9-baseline-for-spring-framework-6
But jOOQ will continue to provide paid support for older JDKs for quite a while, still. At the same time, jOOQ 3.14 - 3.16 will receive patches for another while, too.
Currently, I'm setting up Sonarqube for objective-c project.
SonarQube : 5.4 (worked)
Sonar runner: 2.8
Sonar Plugin for Objective C : https://github.com/octo-technology/sonar-objective-c
but when I try to run sonar runner for the project then terminal said:
ERROR: Error during SonarQube Scanner execution
ERROR: You must install a plugin that supports the language 'objc'
ERROR:
ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
ERROR - Command 'sonar-runner ' failed with error code: 1
Could you please give me some advice ?
I am not sure which version of SonarQube you are using but for SonarQube version 6.7(Latest), you can download Objective-C plugin from here and copy it to :
SONAR_HOME/extensions/plugins/
In my case it was /usr/local/Cellar/sonarqube/6.7.1/libexec/extensions/plugins/
Restart the SonarQube server and you're good to go.
It's an old issue but I hope this helps someone.
I've imported a Libgdx projecto using Gradle.
After I've followed these instructions: https://github.com/libgdx/libgdx/wiki/Gradle-and-Intellij-IDEA#running-your-project
But, it returns the next bug when trying launch the desktop version:
(*class Bootstrap is the main class of the core)
Information:Gradle: Executing tasks: [:desktop:assemble, :core:assemble]
Information:18/06/2015 10:29 - Compilation completed with 3 errors and 1 warning in 5s 37ms
Error:Gradle: Execution failed for task ':desktop:compileJava'.
Compilation failed; see the compiler error output for details.
Warning:Gradle: [options] bootstrap class path not set in conjunction with -source 1.6
D:\workspace\delee\desktop\src\com\josemwarrior\delee\desktop\DesktopLauncher.java
Error:(5, 30) Gradle: error: cannot find symbol class Bootstrap
Error:(12, 28) Gradle: error: cannot find symbol class Bootstrap
I'm using Android Studio 1.2.2
And when I execute the "Make" button, gives me the next error:
D:\workspace\delee\desktop\src\com\josemwarrior\delee\desktop\DesktopLauncher.java
Error:(5, 30) error: cannot find symbol class Bootstrap
Error:(12, 28) error: cannot find symbol class Bootstrap
1 warning
Error:Execution failed for task ':desktop:compileJava'.
Compilation failed; see the compiler error output for details.
Just select Build->Clean, and Build->Rebuild project, and all gone fine
I've a problem importing a gradle project with Android Studio. I select the folder of my application and then choose "Import project for external_model" When i click next, i've an error fired in my console. That's the trace:
ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(1084,751),absolute(1685,1041),button=1,modifiers=Button1,clickCount=1] on dialog0
java.lang.IllegalStateException: #NotNull method com/intellij/openapi/externalSystem/model/settings/LocationSettingType.getColor must not return null
at com.intellij.openapi.externalSystem.model.settings.LocationSettingType.getColor(LocationSettingType.java:54)
at org.jetbrains.plugins.gradle.service.settings.GradleProjectSettingsControl.deduceGradleHomeIfPossible(GradleProjectSettingsControl.java:279)
at org.jetbrains.plugins.gradle.service.settings.GradleProjectSettingsControl.resetExtraSettings(GradleProjectSettingsControl.java:236)
at com.intellij.openapi.externalSystem.service.settings.AbstractExternalProjectSettingsControl.reset(AbstractExternalProjectSettingsControl.java:65)
at com.intellij.openapi.externalSystem.service.settings.AbstractImportFromExternalSystemControl.reset(AbstractImportFromExternalSystemControl.java:153)
at com.intellij.openapi.externalSystem.service.project.wizard.AbstractExternalProjectImportBuilder.prepare(AbstractExternalProjectImportBuilder.java:107)
at com.intellij.openapi.externalSystem.service.project.wizard.SelectExternalProjectStepBase.initGradleSettingsControl(SelectExternalProjectStepBase.java:90)
at com.intellij.openapi.externalSystem.service.project.wizard.SelectExternalProjectStepBase.updateStep(SelectExternalProjectStepBase.java:44)
at com.intellij.ide.util.newProjectWizard.AddModuleWizard.updateStep(AddModuleWizard.java:172)
at com.intellij.ide.wizard.AbstractWizard.doNextAction(AbstractWizard.java:377)
at com.intellij.ide.util.newProjectWizard.AddModuleWizard.doNextAction(AddModuleWizard.java:241)
at com.intellij.ide.wizard.AbstractWizard$5.actionPerformed(AbstractWizard.java:197)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
I've tried to reinstall Android Studio, update it (0.1.1, 0.1.7, 0.1.8 versions)and always the same error.
I'm on Ubuntu 12.04 LTS and my JDK version is 1.6.0_26
I've also tried to install gradle 1.6 and add bin folder to my path, but it doesn't work.