Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apache POI

 
sonia pandit
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to open a file edit it and save it back. I need some sample code. Somebody in one of the other forums posted and example. It was just an incomplete snippet. The examples on the apache web site do not seem to work.

webpage

I tried the example BusinessPlan.java and it does not do anything.
I am running it from eclipse. When I run it from the command line, I get
no classdef found error.



Can someone help me with some sample code to open an xls file as an excel file and edit it and write it back?

Thanks,

Sonia
 
Srikkanth Mohanasundaram
Ranch Hand
Posts: 243
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I could run this example without any problems. Add all the jar files in the classpath. (You are specifying a directory). I could get this done from eclipse, the example doesn't print anything on the console.But it created a file.



Take a look at HowToSetTheClasspath FAQ

Thanks,
Srikkanth
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic