0

I'm Not using Android Studio, I'm trying to run sdkmanager.bat file under /sdk/tools/bin but getting below error -

Could not find or load main class java.se.ee'

enter image description here

I have tried solutions available on below question. But none worked. "Could not find or load main class java.se.ee" while running sdkmanager --licences

I don't know how can i unset JAVA_OPTS as its mentioned in answers of above question.

My Environment variables -

enter image description here enter image description here

Heemanshu Bhalla
  • 3,603
  • 1
  • 27
  • 53
  • it will be great to get reason for downvote – Heemanshu Bhalla Jan 29 '20 at 20:33
  • have you tried from the command line running a `set JAVA_OPTS=` (equal to nothing) and trying again the `sdkmanager`? – Andrei Sfat Jan 29 '20 at 21:19
  • or setting `JAVA_OPTS='-XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee'`. try with `set` in your command line first before doing the environment variable just to be sure your on the right track – Andrei Sfat Jan 29 '20 at 21:24
  • @AndreiSfat yes i was able to use set command but unset was not working then it run unset using Set JAVA_OPTS='' – Heemanshu Bhalla Jan 30 '20 at 06:35
  • I don't think there is a `unset` command in Windows. You can just set to something empty. But you could just set the JAVA_OPTS from the environment variables as a system variable or something. Will that not work? – Andrei Sfat Jan 30 '20 at 08:38

0 Answers0