How to download package?

I’m not familiar with where I can get the package I like to use this package in Android.


  • Failed to install HelloAndroid.apk on device 'emulator-5554!
  • Adb android conflict with Genymotion
  • Android - How do I position views in an offset relative to the center/top/bottom (etc.) of their parent?
  • How to get the path to the Android assets folder in the application package
  • Server push notification implementation
  • How to include a .so lib in Intellij IDEA for Android project?
  • Does/Will Google support NDK C++ crashes in Firebase Crash Reporting?
  • Size of ShareAction icon issue on ActionBar with ShareActionProvider-v7
  • Saving byte array using SharedPreferences
  • How to make an Android app without using Android Studio?
  • Gridview show according to actual height within scroll view
  • FragmentActivity cannot be resolved to a type
  • 3 Solutions collect form web for “How to download package?”

    It’s part of Java SE 6. It’s not published separately and also not included in Android. I’d suggest to look for another lightweight Java implementation of a HTTP server, like i-Jetty.

    You can download it from

    It used to be available from Sun for Java 5 but they seem to have pulled the link. Don’t know if it works on Android mind you.

    Old broken link

    Android studio use jcenter as the default repository source. The more convenient way is adding the dependency to gralde configuration.

    The library can be found in jcenter, see here.

    So just add it to your project’s dependencies.

    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        // ...
        compile ''
        // ...
    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.