This week's book giveaway is in the Reactive Progamming forum.
We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line!
See this thread for details.
Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

org/apache/poi/openxml4j/exceptions/InvalidFormatException using JXLS

 
Greenhorn
Posts: 1
Python Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using JXLS Java library to generate excel reports. I am trying to run the sample getting started tutorial (Object collection output demo). As suggested in the tutorial http://jxls.sourceforge.net/getting_started.html I am using maven to specify the required libraries in my project build configuration file. Below is the java code used:


When i run the program in my eclipse i get the below exception:


When i run it in debug mode i see the above exception occurs when it executes the below line:


Java Version: 1.8

Environment: Windows 7

IDE: Eclipse Neon


JXLS Version: 2.4.0
 
Saloon Keeper
Posts: 5808
146
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A class is missing, specifically org.apache.poi.openxml4j.exceptions.InvalidFormatException. Is the jar file containing this class in the runtime classpath?
 
Can you really tell me that we aren't dealing with suspicious baked goods? And then there is this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!