i dont even use java 11 when i load on my inteji i use jdk 8
|
im having a issue i can seem to build my client correctly on intellij i keep getting this error on there saying this??
java: exporting a package from system module java.base is not allowed with --release
im using jdk 11 and i did everything correctly but when i build it i keep getting that error can anyone help me please or tell me what i am doing wrong??
i dont even use java 11 when i load on my inteji i use jdk 8
Module Info File: Review your module-info.java file. You might have declared to export a package that is actually part of java.base. In this case, remove the exports statement related to this package.
Check your Project Structure:
Open File > Project Structure > Project
Verify that the Project SDK is correctly set to JDK 11
Also, check the Project Language Level to make sure it's corresponding to JDK 11.
Check the Compiler Settings:
Go to File > Settings > Build, Execution, Deployment > Compiler > Java Compiler
In "Project bytecode version", select "11".
Uncheck the "Use '--release' option for cross-compilation (Java 9 and later)".
Maven or Gradle Settings: If you're using a build system like Maven or Gradle, make sure that the settings are correct for using Java 11. You might need to update your pom.xml or build.gradle file respectively.
Update IntelliJ IDEA: Make sure you are using the latest version of IntelliJ IDEA. Older versions may have issues with newer versions of the JDK.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |