java exception - Fedora - help

Help
2004-10-31
2013-04-11
  • Terry Davis

    Terry Davis - 2004-10-31

    I am getting this error when starting freemind:

    Exception in thread "main" java.lang.NoClassDefFoundError: while resolving class: freemind.modes.mindmapmode.MindMapToolBar

    [td@td-home ~]$ rpm -q freemind
    freemind-0.7.1-6notsuse
    [td@td-home ~]$ rpm -q libgcj
    libgcj-3.4.2-6.fc3
    [td@td-home ~]$ rpm -q j2re
    j2re-1.4.2_05-fcs

     
    • Eric L.

      Eric L. - 2004-10-31

      Hi,

      can you start 'DEBUG=1 freemind' in a console, you should then see which java command FreeMind is using, e.g. /usr/bin/java. Using (e.g.) '/usr/bin/java -version', we should be able to see if freemind catches the correct JVM.

      Cheers, Eric

       
    • Terry Davis

      Terry Davis - 2004-10-31

      [td@td-home ~]$ DEBUG=1 freemind
      DEBUG:   Freemind parameters are ''.
      DEBUG:   Using $PATH to find java virtual machine.
      DEBUG:   Using '/usr/bin/java' as java virtual machine...
      DEBUG:   Freemind Directory is '/usr/share/freemind'.
      libgcj-java-placeholder.sh

      This script is a placeholder for the /usr/bin/java
      master link required by jpackage.org conventions.  libgcj's
      rmiregistry, rmic and jar tools are now slave symlinks to these
      masters, and are managed by the alternatives(8) system.

      This change was necessary because the rmiregistry, rmic and jar tools
      installed by previous versions of libgcj conflicted with symlinks
      installed by jpackage.org JVM packages.

      Looking for user properties:
      /home/td/.freemind/user.properties

      User properties found.
      Default (System) Look & Feel: javax.swing.plaf.metal.MetalLookAndFeel
      Exception in thread "main" java.lang.NoClassDefFoundError: while resolving class: freemind.modes.mindmapmode.MindMapToolBar
         at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
         at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
         at freemind.modes.mindmapmode.MindMapController.MindMapController(freemind.modes.Mode) (Unknown Source)
         at freemind.modes.mindmapmode.MindMapMode.init(freemind.controller.Controller) (Unknown Source)
         at freemind.modes.ModesCreator.getAllModes() (Unknown Source)
         at freemind.controller.Controller.Controller(freemind.main.FreeMindMain) (Unknown Source)
         at freemind.main.FreeMind.FreeMind() (Unknown Source)
         at freemind.main.FreeMind.main(java.lang.String[]) (Unknown Source)
      Caused by: java.lang.ClassNotFoundException: javax.swing.plaf.basic.BasicComboBoxEditor not found in [file:/usr/share/freemind/lib/freemind.jar, file:./, core:/]
         at java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
         at gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
         at java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/libgcj.so.5.0.0)
         at _Jv_FindClass(_Jv_Utf8Const, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
         at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
         at _Jv_BytecodeVerifier.verify_instructions_0() (/usr/lib/libgcj.so.5.0.0)
         at _Jv_VerifyMethod(_Jv_InterpMethod) (/usr/lib/libgcj.so.5.0.0)
         at _Jv_PrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
         at _Jv_WaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
         at java.lang.VMClassLoader.linkClass0(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
         at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
         ...7 more

       
    • Terry Davis

      Terry Davis - 2004-10-31

      I fixed my problem.  I installed xorg-x11-deprecated-libs rpm and ran:
      JAVA_HOME=/usr/java/j2re1.4.2_05 freemind

       
      • Eric L.

        Eric L. - 2004-11-01

        Hi,

        you can create a file /etc/freemind/freemindrc with the content:

        export JAVA_HOME=/usr/java/j2re1.4.2_05

        and then you can start freemind normally.

        One question: what has 'xorg-x11-deprecated-libs' to do with the problem?

        Cheers, Eric

         

Log in to post a comment.