Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix java.lang.module.FindException: Module java.se.ee not found?

Tags:

linux

I have an error, How to fix it in linux elemetary os? I install JDK 11 on my os when i type ./sdkmanager show this error I install android studio but not running because require sdk

Error occurred during initialization of boot layer
java.lang.module.FindException: Module java.se.ee not found
like image 618
Robert Avatar asked Dec 24 '18 00:12

Robert


3 Answers

I'm using Mint 19 and openJDK11 installed. After a lot of searches and failures, I finally made these things(thanks to the contributors):

1) Download

openjdk10... wget from this link

2) Alternate /bin/java and javac

sudo update-alternatives --install /usr/bin/java java \    .../jdk-10.0.2/bin/java 1

sudo update-alternatives --install /usr/bin/javac javac \    .../jdk-10.0.2/bin/javac 1

sudo update-alternatives --config java

sudo update-alternatives --config javac

java --version

javac --version

.../jdk-10.0.2/bin/java --version

3) REPLACE

../jdk-10.0.2/lib/security/cacerts FOR /usr/lib/jvm/default-java/lib/security/cacerts

4) Export

JAVA_OPTS='-XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee

5) Now the following works

.../tools/bin/sdkmanager

like image 66
Carlos Leandro Avatar answered Nov 11 '22 20:11

Carlos Leandro


please try to switch to JDK 8, this solved my issue.

Double check here as well.

Hope it helps.

like image 24
felix at housecat Avatar answered Nov 11 '22 20:11

felix at housecat


The only option we have is to downgrade the java version. My java version is 12.

I wasted a few hours trying to resolve flutter doctor --android-licenses.

After a ton of SO, github, googling I found this article regarding the deprecation of Java EE modules

I had to downgrade my java version to 1.8.

like image 1
Phani Rithvij Avatar answered Nov 11 '22 22:11

Phani Rithvij