It is highly likely that you need to look at the environment variables you
have set on your machine. At a guess, your classpath or path environment
variable is referring to the earlier version of Java or it has that version
listed before version 1.6. The best thing to do would be to ask another,
more experienced, developer working within your organisation to take a look
for you and try to resolve this issue.

Yours

Mark B


madrasreji wrote:
> 
> here is the output when I run the java -version command from the poi 
> directory
> 
> C:\work\poi\poi-3.5-FINAL>java -version
> java version "1.6.0_14"
> Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
> Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing)
> 
> 
> 
> Reji Joseph
> GOODYEAR ENGINEERED PRODUCTS
> Manufactured and Marketed exclusively by Veyance Technologies, Inc.
> 972-724-6267 (home/work) / 817-704-0016(work)
> 817-797-0091(cell)
> 
> 
> 
> 
> David Fisher <[email protected]> 
> 11/24/2009 09:43 AM
> Please respond to
> "POI Users List" <[email protected]>
> 
> 
> To
> "POI Users List" <[email protected]>
> cc
> 
> Subject
> Re: First time user of the POI
> 
> 
> 
> 
> 
> 
> Hi
> 
>> 1. I downloaded the source distribution and unzipped it. My directory
>> structure is
>> C:\work\poi\poi-3.5-FINAL ( now I have all the files that you had
>> mentioned including the build.xml)
> 
> Good.
> 
>> 2. From the  C:\work\poi\poi-3.5-FINAL I run the ant compile jar 
>> command
>>
>> The build fails. Here is the log.
>>
>> Unable to locate tools.jar. Expected to find it in C:\Program
>> Files\Java\jre6\lib\tools.jar
>> Buildfile: build.xml
>> check-jars:
>> fetch-jars:
>> check-ooxml-jars:
>> fetch-ooxml-jars:
>> init:
>> with.clover:
>> compile-main:
>>    [javac] Compiling 744 source files to
>> C:\work\poi\poi-3.5-FINAL\build\classes
> 
> Where is your Java JDK installed on your machine?
> 
> Regards,
> Dave
> 
> 
>>
>> Any suggestions. Thank you so much for your help.
>>
>> Reji Joseph
>> GOODYEAR ENGINEERED PRODUCTS
>> Manufactured and Marketed exclusively by Veyance Technologies, Inc.
>> 972-724-6267 (home/work) / 817-704-0016(work)
>> 817-797-0091(cell)
>>
>>
>>
>>
>> David Fisher <[email protected]>
>> 11/23/2009 10:05 PM
>> Please respond to
>> "POI Users List" <[email protected]>
>>
>>
>> To
>> "POI Users List" <[email protected]>
>> cc
>>
>> Subject
>> Re: First time user of the POI
>>
>>
>>
>>
>>
>>
>> HI Reji,
>>
>>> Ant is installed in
>>> C:\work\ant\apache-ant-1.7.1
>>>
>>> POI  is unzipped into
>>> C:\work\poi-3.5-FINAL
>>>
>>> In step 2 below, what is the top level directory? Is this the top
>>> level
>>> directory where POI is installed? In my case would that be
>>> C:\work\poi-3.5-FINAL?
>>
>> Yes.
>>
>>> I do not see a build.xml file in the C:\work\poi-3.5-FINAL directory
>>> or am
>>> I looking in the wrong place?
>>
>> It should be there. Did you download the source distribution (poi-
>> src-3.5-FINAL-20090928.zip) from http://poi.apache.org/download.html?
>>
>> Here is what I see in "the top level directory"
>>
>> lightning:POI-3.5-FINAL dave$ ls -1
>> KEYS
>> LICENSE
>> NOTICE
>> ant.dtd
>> build
>> build.xml
>> doap_POI.rdf
>> docs
>> forrest.properties
>> jdepend.xsl
>> legal
>> lib
>> maven
>> ooxml-lib
>> src
>> test-data
>>
>> Regards,
>> Dave
>>
>>>
>>>
>>> Reji Joseph
>>> GOODYEAR ENGINEERED PRODUCTS
>>> Manufactured and Marketed exclusively by Veyance Technologies, Inc.
>>> 972-724-6267 (home/work) / 817-704-0016(work)
>>> 817-797-0091(cell)
>>>
>>>
>>>
>>>
>>> David Fisher <[email protected]>
>>> 11/23/2009 05:45 PM
>>> Please respond to
>>> "POI Users List" <[email protected]>
>>>
>>>
>>> To
>>> "POI Users List" <[email protected]>
>>> cc
>>>
>>> Subject
>>> Re: First time user of the POI
>>>
>>>
>>>
>>>
>>>
>>>
>>> Hi,
>>>
>>> I just rewrote this page: http://poi.apache.org/howtobuild.html  You
>>> probably read this already.
>>>
>>> Here is what you need to do.
>>>
>>> (1) Make sure ant is in your path:
>>>
>>> PATH= ... /apache-ant-1.7.1/bin
>>>
>>> (2) While in the same top level directory with the file "build.xml"
>>> type in this at command:
>>>
>>> ant compile jar
>>>
>>> (3) Find the jar files in build/dist/.
>>>
>>> build/dist/poi-3.5-FINAL-20091123.jar
>>>
>>> Regards,
>>> Dave
>>>
>>> On Nov 23, 2009, at 2:40 PM, madrasreji wrote:
>>>
>>>>
>>>> I have a need to read an excel file from a java application. Here is
>>>> what I
>>>> have done so far.
>>>> I have unzipped the poi-3.5.-FINAL zip file and downloaded the 1.7
>>>> version
>>>> of ANT
>>>>
>>>> My java runtime version "1.6.0_14
>>>>
>>>> I added the jar file poi-3.5-FINAL-20090928.jar file to my project
>>>> and run
>>>> some some test code in a java application. I get the following
>>>> message.
>>>>
>>>> Exception in thread "main" java.lang.UnsupportedClassVersionError:
>>>> org/apache/poi/poifs/filesystem/POIFSFileSystem (Unsupported
>>>> major.minor
>>>> version 49.0)
>>>>
>>>> Is this because I need to rebuild the code using my jdk 1.6. This is
>>>> where I
>>>> am not sure how to proceed. I am a beginner in using ANT, so some
>>>> detailed
>>>> instructions would really help. Thanks in advance for your help.
>>>>
>>>> -- 
>>>> View this message in context:
>>>
>> 
> http://old.nabble.com/First-time-user-of-the-POI-tp26487414p26487414.html
>>>> Sent from the POI - User mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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]
> 
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/First-time-user-of-the-POI-tp26487414p26499900.html
Sent from the POI - User mailing list archive at Nabble.com.


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

Reply via email to