0

I understand that Android doesn't use the full jdk, but I want to add javax to my Android project. More specifically I want to add javax.tools. I can't find a download for it though. Do I have to add the entire JDK as an external library to access javax.tools? Or is none of this possible?

sadelbrid
  • 389
  • 1
  • 3
  • 13
  • What specifically in `javax.tools` do you need. This is likely an [XY problem](https://meta.stackexchange.com/q/66377/351454). – Andreas Jun 16 '18 at 18:09
  • Possible duplicate of [javax.\* cannot be imported in my Android app?](https://stackoverflow.com/questions/16803343/javax-cannot-be-imported-in-my-android-app) – manan5439 Jun 16 '18 at 18:24
  • I'm trying to implement this solution on Android https://stackoverflow.com/questions/31599427/how-to-compile-and-run-java-source-code-in-memory – sadelbrid Jun 16 '18 at 18:35

1 Answers1

0

when you installing jdk in your system , and then define jdk's path to AndoridStudio . so all of your android projects included jdk as an external library. so you don't need to do any thing else. just check your jdk status by this way:

Open command prompt and type java -version. If you get the version info, Java is installed correctly and PATH is also set correctly. and if you don't get:

Go to start menu-->System-->Advanced-->Environment Variables and define your jdk path .

and finally define it in your project Structure in Android Studio .

imansdn
  • 712
  • 6
  • 16