Strange enough this is the output:

file:/C:/Program%20Files/Java/jdk1.6.0_03/jre/lib/ext/poi-3.5-beta4-20081128/

but this path is not existing!



Yegor Kozlov schreef:
Execute the following code:

URL url = HSSFWorkbook.class.getProtectionDomain().getCodeSource().getLocation();
        System.out.println(url);

it will print the path to the POI jar.

nightly builds can be downloaded from http://encore.torchbox.com/poi-svn-build/

Yegor

Your prediction is good.

This was the output:
Wrong result type - got 5errCode=-30
But how can I get rhe newest poi jar file?
I downloaded the one I am using

POI-3.5-FINAL-20090928.jar

from POI website.




Josh Micich schreef:
I am using POI-3.5-FINAL-20090928.jar.
There's a high chance you're not.

You can also dump the error code to help diagnose the problem.
Change this line:
System.err.println("Wrong result type - got " + cv.getCellType() + "
errCode=" + cv.getErrorValue());

I predict the error code will be -30.  Which will mean you are using a
version of POI prior to 3.5-beta4

If I am mistaken, another thing you can try is to put a breakpoint in
Indirect.java:76, to confirm whether execution gets there.  You can
also look around the variables in the stack frame which might help
explain what is going wrong.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to