Menu

problem starting buddi on linux 2.6.11-1.1369

General
2006-12-16
2012-12-10
  • Nobody/Anonymous

    $java -jar Buddi.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: while resolving class: org.homeunix.drummer.Buddi
       at java.lang.VMClassLoader.transformException(java.lang.Class, java.lang.Throwable) (/usr/lib/libgcj.so.6.0.0)
       at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.6.0.0)
       at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.6.0.0)
       at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.6.0.0)
       at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)
    Caused by: java.lang.ClassNotFoundException: java.lang.StringBuilder not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:Buddi.jar,file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
       at java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.6.0.0)
       at java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/libgcj.so.6.0.0)
       at java.lang.ClassLoader.loadClass(java.lang.String) (/usr/lib/libgcj.so.6.0.0)
       at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.6.0.0)
       ...4 more

     
    • Wyatt

      Wyatt - 2006-12-16

      Your problem is that you are using GNU Java (the one which comes by default with most Linux distributions).  Unfortunately, it is not complete, and has no support for Swing (the most popular Graphical Interface of Java).  You will need to download Sun's Java VM from java.sun.com, and install that.  You will then need to make sure that Sun's Java is in the path before GNU Java (modify $PATH to include /path/to/sun/java/bin at the beginning).  Explaining how to do this is probably beyond the scope of this note, but I assume that if you are using Linux, you have a decent understanding of how to do this sort of thing anyway - if not, your best bet is to ask your local Linux guru on how to do this.

      Note that within a few months, this will no longer be an issue, as Sun has announced that it will be releasing Java under the GPL.  This means that Linux distributions will be able to include the real version of Java, instead of the broken GNU version.

      Hope this helps

      Cheers
      --Wyatt

       

Log in to post a comment.