Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

module java.base does not "opens java.io" to unnamed module

It was no need to downgrade Java JDK. 
Just changed gradle version in gradle-wrapper properties 
to 7.1.1 (6.x does not support java 16), and adding the following 
line in gradle.properties:
'org.gradle.jvmargs=-Xmx1536M --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED'

Taken from: https://stackoverflow.com/a/69179997
Comment

PREVIOUS NEXT
Code Example
Java :: java synchronized method 
Java :: how to merge two arrays in java 
Java :: java words from file 
Java :: netbeans android sdk location 
Java :: reverse arraylist java recursion 
Java :: how to initialize main in java 
Java :: exception handling in java 
Java :: what is static method in oop 
Java :: java local method 
Java :: date java use fix timezone 
Java :: mettre caractère de string en majuscule java 
Java :: how to convert a arraylist to array in java 
Java :: /setblock 
Java :: difference between two sets java 
Java :: input char arrayjava 
Java :: Java reduce() Method 
Java :: java try...catch 
Java :: Android listen to network change 
Java :: java stream add to existing list 
Java :: multiple spinner android 
Java :: Java telegram bot dependency 
Java :: java static keyword 
Java :: hashtable in java 
Java :: uml to java 
Java :: round to the next multiple of 5 
Java :: java read fule get String 
Java :: iterate through arraylist java 
Java :: how to create a java txt file from programm 
Java :: try catch block 
Java :: list of arrays 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =