java.lang.NoClassDefFoundError: sun/swing/plaf/synth/SynthUI

前端 未结 2 604
时光取名叫无心
时光取名叫无心 2020-12-22 15:06

I am using Seaglass Look and Feel for my Java Swings code. But I keep getting this error.

    Exception in thread \"main\" java.lang.NoClassDefFoundError: s         


        
2条回答
  •  孤城傲影
    2020-12-22 15:41

    The best way to test the compatibility is to check whether the code is working with Java 6 (If you are using any IDE like eclipse of Intellij they have the option of compiling file with lower Java version).

    From the error it seems that at run-time it is not able to find the Class, or the path where it is located. You can try java -cp to specify the path.

提交回复
热议问题