2 Replies Latest reply: Jan 17, 2012 4:24 PM by Jörg RSS

    NoClassDefFoundError in executable jar

    Jörg
      Hello,

      I have a class with several static methods. One of them uses a static
      inner class of the same file. Both lines in the code below compile and work
      without error, but when running the program from a jar-file, I get a
      NoClassDefFoundError.
      How can I refer to that inner class then?
      public class MyClass {
      
          public static String myMethod() {
           .
           .
           tree.setCellRenderer(new MyInnerClass());
      //     tree.setCellRenderer(new MyClass.MyInnerClass());
          }
      
          public static class MyInnerClass() extends DefaultTreeCellRenderer {
          }
      }