OS : Redhat 5.0
JDK : JDK1.17
JSDK :JSDK2.0

I installed JDK1.1.7 and JSDK2.0.

and I test application program and It's OK
but I test servlet program.. but It has some problems.
I din't see this problem before in Othre OS(Solaris or NT)
and I have a trouble in this problem.

the Problem is
the source code is very simple
---------------------------------------------------
---------------------------------------------------
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;

public class HelloServlet extends HttpServlet {
//Initialize global variables

public void init(ServletConfig config) throws ServletException {
super.init(config);
}
//Service the request
public void service(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// content type
response.setContentType("text/html");

// response ¼³Á¤
PrintWriter out = new PrintWriter(response.getOutputStream());

out.println("<HTML>");
out.println("</HEAD><BODY>");
out.println("<H1>" + "Hello! this is my first Servlet" + "</H1>");
out.println("<P>This is output from SimpleServlet.");
out.println("</BODY></HTML>");
out.close();

}
//Get Servlet information

public String getServletInfo() {
return "hanul.HelloServlet Information";
}
}
----------------------------------------------------------
----------------------------------------------------------
and error message is like this
----------------------------------------------------------
----------------------------------------------------------
Failed to locate native function:
java/util/zip/Inflater.init(Z)V
java.lang.UnsatisfiedLinkError
at java/util/zip/ZipFile.getInputStream(line unknown, pc 0x8373d8a)
at sun/tools/java/ClassFile.getInputStream(line unknown, pc 0x82524e6)
at sun/tools/javac/BatchEnvironment.loadFile(line unknown, pc 0x8374087)
at sun/tools/javac/BatchEnvironment.loadDefinition(line unknown, pc 0x8379330)
at sun/tools/java/Environment.loadDefinition(line unknown, pc 0x836b981)
at sun/tools/java/Environment.loadDefinition(line unknown, pc 0x836b981)
at sun/tools/java/Environment.loadDefinition(line unknown, pc 0x836b981)
at sun/tools/java/ClassDeclaration.getClassDefinition(line unknown, pc 0x834fcc0)

at sun/tools/java/ClassDefinition.getInnerClass(line unknown, pc 0x83739bd)
at sun/tools/java/ClassDefinition.resolveName(line unknown, pc 0x8373702)
at sun/tools/java/Environment.resolveNames(line unknown, pc 0x836d91a)
at sun/tools/java/Environment.resolveNames(line unknown, pc 0x836dbb0)
at sun/tools/javac/SourceField.resolveTypeStructure(line unknown, pc 0x837323d)
at sun/tools/javac/SourceClass.resolveTypeStructure(line unknown, pc 0x836e27b)
at sun/tools/javac/SourceClass.basicCheck(line unknown, pc 0x82fb1a9)
at sun/tools/java/ClassDeclaration.getClassDefinition(line unknown, pc 0x834fd01)

at sun/tools/javac/Main.compile(line unknown, pc 0x817c958)
at sun/tools/javac/Main.main(line unknown, pc 0x815aadf)
error: An error has occurred in the compiler; please file a bug report
(http://java.sun.com/cgi-bin/bugreport.cgi).
1 error
--------------------------------------------------
--------------------------------------------------

please help me.
thanks ...
----------------------------------------------------------------
Home : http://rtislab.chungnam.ac.kr/~java
Mail : [EMAIL PROTECTED]
 

Reply via email to