code: public void addJavaLibraries() {
          Vector packages = JavaEnvUtils.getJrePackages();
          Enumeration e = packages.elements();
          while (e.hasMoreElements()) {
              String packageName = (String) e.nextElement();
              addSystemPackageRoot(packageName);
          }
      }
docs: add any libraries that come with different java versions
  here