poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ura...@free.fr
Subject Problems with POI and OLD JDK
Date Wed, 22 Jun 2005 10:09:07 GMT


I work on IBM AS/400 (os V4R5) with WebSphere 2.0.2, a JVM version 1.1.8 !
wouhou !
[I can't update the JVM]

I need to use API POI to create XLS files with a servlet.
I compile POI 2.5.1 Source Code with the last J2SDK [on local] to generate class
files that will work with my jvm
(cross-compilation -target 1.1).

On local machine, the program test bellow work with JDK 1.4.2_08 [I use IDE
Eclipse 3.0] :

import java.io.IOException;
import java.io.FileOutputStream;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;

public class Poi

	public static void main(String[] args)
	  FileOutputStream fileOut = new FileOutputStream("toto.xls");
	  HSSFWorkbook wb = new HSSFWorkbook();
	  HSSFSheet sheet1 = wb.createSheet();
	  HSSFRow row = sheet1.createRow((short)0);
	catch (IOException e)

And on the server, or on the local machine with the JDK 1.1.8, I have this
exception :
java.lang.NoClassDefFoundError: java/util/HashMap
	at Poi.main(Poi.java:14)

And there, I don't know what to do, BECAUSE I don't want to waste my time
trying to compile HashMap Source Code and surely others class to finally have
something that
doesn't work !!!

Maybe there is a POI version using JDK 1.1.8.......

Pls, give me a solution !!!

Thank YOU !


To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/

View raw message