I get the following error when I compile a JSP with jspc.
I use weblogic 5.1 on a PC running on Windows 2000 Pro.
Can someone please help me before I throw my PC through the window? :-)
C:\weblogic\classes\weblogic>java weblogic.jspc -d c:\weblogic\classes -keepgenerated
printAllParame
ters.jsp
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/java/util/collections/List
at weblogic.jspc.<init>(jspc.java:37)
at weblogic.jspc.main(jspc.java:111)
"Bernard Colagrosso" <bernardc...@hotmail.com> wrote in message
news:3c9944fb$1...@newsgroups.bea.com...
However the problem seems to be elsewhere.
Here's additional information.
I am using jdk1.2.2
I reinstalled my JDK and Weblogic 5.1 (SP 11) and it worked once but after that
I got the same error again.
The setEnv.cmd script gives me an error when I run it saying jdk 1.1.7 can't be
found (obviously). so I changed the JAVA_HOME variable in the script to c:\jdk1.2.2
and, as I mentioned, it worked OK the first time, but never again.
Here is my JSP:
<HTML><HEAD><TITLE>JSP Prints All Parameters</TITLE></HEAD><BODY>
<%@ page import="java.util.Enumeration"%>
<H2> Print all initialization parameters </H2>
<UL>
<% Enumeration parameters = config.getInitParameterNames();
while (parameters.hasMoreElements()) {
String name = (String)parameters.nextElement();
%> <LI> <%=name%> = <%=config.getInitParameter(name)%>
<% } %>
</UL>
</BODY></HTML>