Re: Baffling class not found problem
- From: "John C. Bollinger" <jobollin@xxxxxxxxxxx>
- Date: Wed, 25 May 2005 10:05:25 -0500
laredotornado@xxxxxxxxxxx wrote:
Hello, I'm using Java 1.3 with WebLogic 5.1 on Solaris. I have these files:
cms/system/CMSException.class cms/system/Constants.class cms/system/InitServlet.class cms/system/Log.class
When I include this line on my JSP page
<%@ page import="cms.system.*" %>
everything compiles fine. As does this line
<%@ page import="cms.*" %>
but when I try
<%@ page import="cms.system.Constants" %>
(r using any of the 4 class names above) I get the error:
Compilation of '/tmp/support/jsp_servlet/_www/__temp.java' failed: /tmp/support/jsp_servlet/_www/__temp.java:16: Class cms.system.Constants not found in import. probably occurred due to an error in /www/temp.jsp line 1: <%@ page import="cms.system.Constants" %>
How can this be? The perms on the files above are all 775. Can anyone think of an explanation for why these files can't be found?
The classes are not on the relevant classpath. The wildcard imports work because they don't imply the existence of any particular class. The specific class imports fail because, as the message tells you, the class is not found. See my response in your other thread for information on how to package these classes and where to put them.
-- John Bollinger jobollin@xxxxxxxxxxx .
- Follow-Ups:
- Re: Baffling class not found problem
- From: laredotornado
- Re: Baffling class not found problem
- References:
- Baffling class not found problem
- From: laredotornado
- Baffling class not found problem
- Prev by Date: Re: JVM sources
- Next by Date: Re: Why Generics?
- Previous by thread: Baffling class not found problem
- Next by thread: Re: Baffling class not found problem
- Index(es):
Relevant Pages
|