Two Laptop Bag*
The moose likes Other Open Source Projects and the fly likes Hssf error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Hssf error" Watch "Hssf error" New topic
Author

Hssf error

Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 483

hi,
i'm getting this error although all the needed packages in the classpath

here is the error :


any recommendations?


Thanks,
Sherif
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9930
    
159

How have you added the jars to the classpath? And what command do you use to run the program?


[My Blog] [JavaRanch Journal]
Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 483

Originally posted by Jaikiran Pai:
How have you added the jars to the classpath? And what command do you use to run the program?

i made a sealed jar with the eclipse and run the jar with a batch inside it this command
Sealing your java jar

any comments ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41096
    
  44
So you extracted the POI classes, and then added them to that jar file?


Ping & DNS - my free Android networking tools app
Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 483

Originally posted by Ulf Dittmer:
So you extracted the POI classes, and then added them to that jar file?


No i putted them as it (.jar)
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41096
    
  44
You can't put a jar file inside of another jar file, and then expect the classloader to be able to load those classes. Either extract the classes from the POI jar files and add them to your application's jar file, or keep the jar files separate and add a manifest to the main jar file that points to the other ones.
 
 
subject: Hssf error
 
Similar Threads
UnsupportedClassVersionError
NoClassDefFoundError
NoClassDefFoundError
UnsupportedClassVersionError --
abstract class