Apache POI in executable jar
问题 My program successfully runs the Apache POI functionality to read Excel Files. It works fine when I run it with java class name. When I package as an executable jar it does not work. Here is the error message I keep getting: java -jar some.jar Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/poi/ss/usermodel/Row at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class