• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Using jxl api with eclipse for reading a file

 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,I am trying to use jxl api in eclipse in my struts application.I've put jxl.jar file,jexcel apir jar files in the build apth.But whenever i try to write import jxl statement in my class, eclispe shows and error that package jxl does not exist. I need little help here.Thanks
 
Ranch Hand
Posts: 180
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you have added the jars to the classpath , ideally it should work.
If not can you check the .classpath file or paste it here?.

cheers,
Saurav
 
aman thind
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

saurav sarkar wrote:If you have added the jars to the classpath , ideally it should work.
If not can you check the .classpath file or paste it here?.



Yeah,it shows in the classpath file.May be problem is my JBoss. It's giving "Failed to setup clustering, clustering disabled. NoClassDefFoundError: org/jboss/cache/aop/PojoCacheMBean" error:(
 
saurav sarkar
Ranch Hand
Posts: 180
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Where are you getting the error in the Design time or while running the app?...
In the Design time if the project is not of JBoss type( i dont know if there is one)...then it should
compile if the jars are present in the classpath.
 
aman thind
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

saurav sarkar wrote:Where are you getting the error in the Design time or while running the app?...
In the Design time if the project is not of JBoss type( i dont know if there is one)...then it should
compile if the jars are present in the classpath.



During the deployment,on JBoss console...In eclipse the project build fine but the delpoyment fails.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The build-time classpath and the runtime classpath are two different things. How are you adding the jxl jar file to the runtime classpath?
 
aman thind
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:The build-time classpath and the runtime classpath are two different things. How are you adding the jxl jar file to the runtime classpath?


Hi,thanks for your such prompt replies:) It seems i needed to add the jxl.jar file in JBoss lib folder.My application is working now and i am able to get the data from xls. Thanks for your help:)
reply
    Bookmark Topic Watch Topic
  • New Topic