S
snjat
Unregistered / Unconfirmed
GUEST, unregistred user!
编译通过,但执行出问题
500 Servlet Exception
java.lang.NoClassDefFoundError
at _jsp2__jsp._jspService(/jsp2.jsp:36)
at com.caucho.jsp.JavaPage.service(JavaPage.java:74)
at com.caucho.jsp.Page.subservice(Page.java:485)
at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:176)
at com.caucho.server.http.Invocation.service(Invocation.java:278)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:129)
at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:338)
at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:270)
at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
at java.lang.Thread.run(Thread.java:484)
--------------------------------------------------------------------------------
Resin 2.0.4 (built Thu Nov 15 17:56:24 PST 2001)
/**
* Title:
* Description:
* Copyright: Copyright (c) 2002
* Company:
* @author
* @version 1.0
*/
import java.io.InputStream;
import java.io.IOException;
import java.io.ByteArrayInputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.*;
import java.lang.*;
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
import org.apache.poi.hssf.record.*;
import org.apache.poi.hssf.model.*;
import org.apache.poi.hssf.usermodel.*;
import org.apache.poi.hssf.util.*;
import org.apache.poi.hssf.dev.*;
public class loadbudget {
public loadbudget() {
}
public void load()
throws IOException
{
// FileOutputStream out = new FileOutputStream("book1.xls");
POIFSFileSystem fs =
new POIFSFileSystem(new FileInputStream("c://book1.xls"));
HSSFWorkbook hssfworkbook = new HSSFWorkbook(fs);出错语句
HSSFSheet s = hssfworkbook.getSheetAt(1);
HSSFRow r = s.getRow(1);
HSSFCell c = r.getCell((short)1);
System.out.print(c.getStringCellValue());
}
}
500 Servlet Exception
java.lang.NoClassDefFoundError
at _jsp2__jsp._jspService(/jsp2.jsp:36)
at com.caucho.jsp.JavaPage.service(JavaPage.java:74)
at com.caucho.jsp.Page.subservice(Page.java:485)
at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:176)
at com.caucho.server.http.Invocation.service(Invocation.java:278)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:129)
at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:338)
at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:270)
at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
at java.lang.Thread.run(Thread.java:484)
--------------------------------------------------------------------------------
Resin 2.0.4 (built Thu Nov 15 17:56:24 PST 2001)
/**
* Title:
* Description:
* Copyright: Copyright (c) 2002
* Company:
* @author
* @version 1.0
*/
import java.io.InputStream;
import java.io.IOException;
import java.io.ByteArrayInputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.*;
import java.lang.*;
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
import org.apache.poi.hssf.record.*;
import org.apache.poi.hssf.model.*;
import org.apache.poi.hssf.usermodel.*;
import org.apache.poi.hssf.util.*;
import org.apache.poi.hssf.dev.*;
public class loadbudget {
public loadbudget() {
}
public void load()
throws IOException
{
// FileOutputStream out = new FileOutputStream("book1.xls");
POIFSFileSystem fs =
new POIFSFileSystem(new FileInputStream("c://book1.xls"));
HSSFWorkbook hssfworkbook = new HSSFWorkbook(fs);出错语句
HSSFSheet s = hssfworkbook.getSheetAt(1);
HSSFRow r = s.getRow(1);
HSSFCell c = r.getCell((short)1);
System.out.print(c.getStringCellValue());
}
}