---
title: "jxl2.6与jdk版本问题"
author: "fengsky491"
date: "2009-11-27T11:12:24Z"
tags: []
slug: "jxl2-6-jdk"
draft: false
lastmod: "2009-11-27T11:13:26Z"
id: 531003
url: "https://fengsky491.iteye.com/blog/531003"
---

今天从[http://sourceforge.net/projects/jexcelapi/files/](http://sourceforge.net/projects/jexcelapi/files/ "http://sourceforge.net/projects/jexcelapi/files/")

下了jxl2.6，读写excel时，出现java.lang.UnsupportedClassVersionError: Bad version number in .class file

异常，查了下，发现Eclipse用的是JDK1.5，

而刚下的jxl要求jdk1.6，由于本机没有安装1.6

重新下个[jexcelapi\_2\_6\_9\_1.4.zip](http://sourceforge.net/projects/jexcelapi/files/jexcelapi/2.6.9%20%28Java%201.4%29/jexcelapi_2_6_9_1.4.zip/download "/jexcelapi/2.6.9 (Java 1.4)/jexcelapi_2_6_9_1.4.zip:  released on 2008-11-25") 包，问题解决