Home > Mobile >  error: package org.apache.poi.hssf.usermodel does not exist
error: package org.apache.poi.hssf.usermodel does not exist

Time:07-19

I have this app for XML and flatfile generation in the src folder and I have the jarFiles in Jarfiles folder.

I was trying to compile my java file and I get this error: package org.apache.poi.hssf.usermodel does not exist, I am importing this in my java file and have the jar file in the src folder. How can I fix this problem?

Update: I tried to include the jarfiles as the answer indicated with this line in cmd javac -cp "jarFiles/*" Xls_Reader.java, it seems that I am still having the same error

CodePudding user response:

As it seems that you are not using a build tool like Maven or Gradle, you have to make the jar part of your classpath (to get instructions on how to do that, see https://stackoverflow.com/a/49515986/16342635.

However, I would recommend getting familiar with a build tool like Maven and to manage your dependencies (your "jar files") with that.

  • Related