Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8187748

javax.activation classes throws NoClassDefFoundError

    XMLWordPrintable

    Details

      Description

      FULL PRODUCT VERSION :
      java version "9"
      Java(TM) SE Runtime Environment (build 9+181)
      Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 6.1.7601]

      A DESCRIPTION OF THE PROBLEM :
      All programs using classes of javax.activation package will throw an exception at startup and will not function.


      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      C:\Users\Gxxxxxxxx\tools\Agile Workbench>java -jar Agile_Workbench.jar
      Exception in thread "main" java.lang.NoClassDefFoundError: javax/activation/Mime
      typesFileTypeMap
              at agileworkbench.Main.<init>(Main.java:98)
              at agileworkbench.Main.main(Main.java:165)
      Caused by: java.lang.ClassNotFoundException: javax.activation.MimetypesFileTypeM
      ap
              at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown So
      urce)
              at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(U
      nknown Source)
              at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
              ... 2 more


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      package examples.activation;

      import javax.activation.MimetypesFileTypeMap;

      public class XActivation {

      public static void main(String[] args) {
      MimetypesFileTypeMap map = new MimetypesFileTypeMap();
      }
      }
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Use Java 8.

        Attachments

          Activity

            People

            Assignee:
            psonal Pallavi Sonal (Inactive)
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: