MIDRANGE dot COM Mailing List Archive



MIDRANGE-L » February 2013

Re: classpath question



I'll take a guess - a JAR file is a container for classes - if you had an actual class object, maybe that would be found.

As I say, a WAG!

Vern

On 2/6/2013 11:36 AM, tim.dclinc@xxxxxxxxx wrote:
im using Scott's POI to write excel documents. I placed the jar files in
the ifs "java" folder. I modified the classpath as follows:

/QIBM/UserData/Java400/ext/:/java/poi3.1/

when i try executing my code, i get a class not found error. I modified
the classpath as follows again:

/QIBM/UserData/Java400/ext/:/java/poi3.1/poi3.1.jar

and now it works.

Im not sure why i have to specify the jar file in the classpath. Why
doesnt it work just specifying the folder the jars are contained in.








Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2013 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact