Link to home
Start Free TrialLog in
Avatar of nkk1712
nkk1712

asked on

can not access .xlsx file in class path from jar

hi ,
the following code having some problem.

final Workbook workbook = new Workbook(ClassLoader.getSystemResourceAsStream("test.xlsx"));

how to achive this. this code working fine with my eclipse, but when packge the same i am getting the following ..

java.util.zip.ZipException: incomplete literal/length tree
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER CERTIFIED SOLUTION
Avatar of nkk1712
nkk1712

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nkk1712
nkk1712

ASKER

i am using maven to package.

i resloved this issue by changing in assembly.xml