title: "Could not find or load main class java.se.ee" while running sdkmanager --licences
body: <p>When building my project on android studio, it asks me to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.</p>
  
  <p>When I run "./sdkmanager --licenses", I have the "Could not find or load main class java.se.ee" error.</p>
  
  <p>I found a lot of similar issues on stackoverflow, but non of the solutions provided worked for me.</p>
  
  <p>I already tried:
  1- downgrade to java 8</p>
  
  <p>2- export JAVA_OPTS='-XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee'</p>
  
  <p>3- change sdkmanager file by adding : DEFAULT_JVM_OPTS='"-Dcom.android.sdklib.toolsdir=$APP_HOME" -XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee'</p>