lcm-proj / lcm

Lightweight Communications and Marshalling
GNU Lesser General Public License v2.1
996 stars 393 forks source link

java.lang.NoClassDefFoundError #87

Open sonpeppers opened 8 years ago

sonpeppers commented 8 years ago

Sorry, can I revisit issue #19 ? I get a very similar error on lcm 1.2.1. lcm-spy can find the LCM types I defined in my jar, but lcm-spy only shows a grey window.

Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release ClassDiscoverer: java.lang.NoClassDefFoundError:apple/laf/AquaPopupMenuUI jar: /usr/local/share/java/lcm.jar class: com/jidesoft/plaf/aqua/AquaJidePopupMenuUI.class ClassDiscoverer: java.lang.NoClassDefFoundError: org/apache/commons/io/output/ByteArrayOutputStream jar: /usr/local/share/java/lcm.jar class: org/apache/xmlgraphics/xmp/XMPPacketParser.class ClassDiscoverer: java.lang.NoClassDefFoundError: org/apache/commons/io/output/ByteArrayOutputStream jar: /usr/local/share/java/lcm.jar class: org/apache/xmlgraphics/image/loader/impl/ImageConverterRendered2PNG.class Found 15 LCM types LCM: Disabling IPV6 support LCM: TTL set to zero, traffic will not leave localhost. ClassDiscoverer: java.lang.NoClassDefFoundError: apple/laf/AquaPopupMenuUI jar: /usr/local/share/java/lcm.jar class: com/jidesoft/plaf/aqua/AquaJidePopupMenuUI.class Found 0 plugins

tbeu commented 7 years ago

I really tried hard to get lcm-spy running on Win, but now I am stopped with the same NoClassDefFoundError as reported some 6 months ago.

C:\Programme\Java\jdk1.7.0_75\bin\java.exe -server -Djava.net.preferIPv4Stack=true -Xincgc -Xmx128m -Xms64m -ea -cp lcm.jar;jchart2d-code\jchart2d-3.2.2.jar;jchart2d-code\ext\jide-oss-2.9.7.jar;jchart2d-code\ext\xmlgraphics-commons-1.3.1.jar;mddtest_t.jar; lcm.spy.Spy

shows the grey window and reports

ClassDiscoverer: java.lang.NoClassDefFoundError: apple/laf/AquaPopupMenuUI
                 jar: jchart2d-code\ext\jide-oss-2.9.7.jar
                 class: com/jidesoft/plaf/aqua/AquaJidePopupMenuUI.class
ClassDiscoverer: java.lang.NoClassDefFoundError: org/apache/commons/io/output/ByteArrayOutputStream
                 jar: jchart2d-code\ext\xmlgraphics-commons-1.3.1.jar
                 class: org/apache/xmlgraphics/image/loader/impl/ImageConverterRendered2PNG.class
ClassDiscoverer: java.lang.NoClassDefFoundError: org/apache/commons/io/output/ByteArrayOutputStream
                 jar: jchart2d-code\ext\xmlgraphics-commons-1.3.1.jar
                 class: org/apache/xmlgraphics/xmp/XMPPacketParser.class
Found 1 LCM types
LCM: Disabling IPV6 support
LCM: TTL set to zero, traffic will not leave localhost.
ClassDiscoverer: java.lang.NoClassDefFoundError: apple/laf/AquaPopupMenuUI
                 jar: jchart2d-code\ext\jide-oss-2.9.7.jar
                 class: com/jidesoft/plaf/aqua/AquaJidePopupMenuUI.class
Found 0 plugins

Any chance for some help? Thanks a lot!

tbeu commented 7 years ago

After adding ui.jar and commons-io-2.5.jar to the classpath I now get

ClassDiscoverer: java.lang.NoClassDefFoundError: sun/java2d/opengl/CGLGraphicsConfig
                 jar: ui.jar
                 class: apple/awt/CGraphicsDevice.class
ClassDiscoverer: java.lang.NoClassDefFoundError: sun/awt/image/RasterListener
                 jar: ui.jar
                 class: apple/awt/OSXBackBuffer.class
ClassDiscoverer: java.lang.NoClassDefFoundError: sun/awt/image/CachingSurfaceManager
                 jar: ui.jar
                 class: apple/awt/OSXCachingSurfaceManager.class
ClassDiscoverer: java.lang.NoClassDefFoundError: sun/awt/image/RasterListener
                 jar: ui.jar
                 class: apple/awt/OSXOffScreenSurfaceData.class
ClassDiscoverer: java.lang.NoClassDefFoundError: sun/java2d/opengl/CGLVolatileSurfaceManager
                 jar: ui.jar
                 class: apple/awt/OSXSurfaceManagerFactory.class
ClassDiscoverer: java.lang.NoClassDefFoundError: sun/font/NativeStrikeDisposer
                 jar: ui.jar
                 class: sun/font/AppleNativeStrike$GlyphInfoCache.class
ClassDiscoverer: java.lang.NoClassDefFoundError: sun/font/NativeStrikeDisposer
                 jar: ui.jar
                 class: sun/font/AppleNativeStrike.class

Can anyone please tell me the library dependencies for jide-oss? Did anyone got lcm-spy already running on Win?

cjds commented 4 years ago

I'm getting the same error today on Ubuntu with libjide-oss installed.

lcm-spy 
ClassDiscoverer: java.lang.NoClassDefFoundError: apple/laf/AquaPopupMenuUI
                 jar: /opt/drake/share/java/jide-oss-2.9.7.jar
                 class: com/jidesoft/plaf/aqua/AquaJidePopupMenuUI.class
ClassDiscoverer: java.lang.NoClassDefFoundError: com/sun/java/swing/plaf/windows/WindowsProgressBarUI
                 jar: /opt/drake/share/java/jide-oss-2.9.7.jar
                 class: com/jidesoft/plaf/vsnet/VsnetWindowsProgressBarUI.class
ClassDiscoverer: java.lang.NoClassDefFoundError: com/sun/java/swing/plaf/windows/WindowsPopupMenuUI
                 jar: /opt/drake/share/java/jide-oss-2.9.7.jar
                 class: com/jidesoft/plaf/windows/WindowsJidePopupMenuUI.class
ClassDiscoverer: java.lang.NoClassDefFoundError: apple/laf/AquaPopupMenuUI
                 jar: /opt/drake/share/java/jide-oss-2.9.7.jar
                 class: com/jidesoft/plaf/aqua/AquaJidePopupMenuUI.class
ClassDiscoverer: java.lang.NoClassDefFoundError: com/sun/java/swing/plaf/windows/WindowsProgressBarUI
                 jar: /opt/drake/share/java/jide-oss-2.9.7.jar
                 class: com/jidesoft/plaf/vsnet/VsnetWindowsProgressBarUI.class
ClassDiscoverer: java.lang.NoClassDefFoundError: com/sun/java/swing/plaf/windows/WindowsPopupMenuUI
                 jar: /opt/drake/share/java/jide-oss-2.9.7.jar
                 class: com/jidesoft/plaf/windows/WindowsJidePopupMenuUI.class
Found 0 LCM types
LCM: Disabling IPV6 support
LCM: TTL set to zero, traffic will not leave localhost.
ClassDiscoverer: java.lang.NoClassDefFoundError: apple/laf/AquaPopupMenuUI
                 jar: /opt/drake/share/java/jide-oss-2.9.7.jar
                 class: com/jidesoft/plaf/aqua/AquaJidePopupMenuUI.class
ClassDiscoverer: java.lang.NoClassDefFoundError: com/sun/java/swing/plaf/windows/WindowsProgressBarUI
                 jar: /opt/drake/share/java/jide-oss-2.9.7.jar
                 class: com/jidesoft/plaf/vsnet/VsnetWindowsProgressBarUI.class
ClassDiscoverer: java.lang.NoClassDefFoundError: com/sun/java/swing/plaf/windows/WindowsPopupMenuUI
                 jar: /opt/drake/share/java/jide-oss-2.9.7.jar
                 class: com/jidesoft/plaf/windows/WindowsJidePopupMenuUI.class
ClassDiscoverer: java.lang.NoClassDefFoundError: apple/laf/AquaPopupMenuUI
                 jar: /opt/drake/share/java/jide-oss-2.9.7.jar
                 class: com/jidesoft/plaf/aqua/AquaJidePopupMenuUI.class
ClassDiscoverer: java.lang.NoClassDefFoundError: com/sun/java/swing/plaf/windows/WindowsProgressBarUI
                 jar: /opt/drake/share/java/jide-oss-2.9.7.jar
                 class: com/jidesoft/plaf/vsnet/VsnetWindowsProgressBarUI.class
ClassDiscoverer: java.lang.NoClassDefFoundError: com/sun/java/swing/plaf/windows/WindowsPopupMenuUI
                 jar: /opt/drake/share/java/jide-oss-2.9.7.jar
                 class: com/jidesoft/plaf/windows/WindowsJidePopupMenuUI.class
Found 0 plugins
Spy quitting
fr0zenrain commented 6 months ago

Can anyone give the right version of the dependent jar?