java.lang.NoClassDefFoundError

org/apache/poi/hssf/usermodel/HSSFWorkbook

Samebug tips8

You might've forgot to add a dependency or it's written wrong. Also, you might be using incompatible versions of Java and Hibernate. More on this here: https://goo.gl/SjSlRA

This error means there's a class missing in your classpath during runtime. You need to create a jar with all your dependencies and have it in your classpath. Check Maven Assembly Plugin and how to add your dependencies to a jar: https://goo.gl/U2zr8k

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web19107

  • via myexception.cn by Unknown author, 1 year ago
    org/apache/poi/hssf/usermodel/HSSFWorkbook
  • org/apache/poi/hssf/usermodel/HSSFWorkbook
  • via co.jp by Unknown author, 1 year ago
    org/apache/poi/hssf/usermodel/HSSFWorkbook
  • Stack trace

    • java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/HSSFWorkbook at sherif_DataToExcel.DataToExcel2.<init>(DataToExcel2.java:69) at sherif_Db.client_input.logic(client_input.java:171) at sherif_Db.client_input.main(client_input.java:27) Caused by: java.lang.ClassNotFoundException: org.apache.poi.hssf.usermodel.HSSFW orkbook at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) ... 3 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    1189 more bugmates