Hi there,
Here are some pointers:
1) The ecs-1.4.1.jar IS the ecs.jar so you are on the right track
Use jar tf ecs-1.4.1.jar to admire the classes in there, if the
class the compiler is looking for is not in there, you are out
of luck.
2) Not sure whether copying the jar into /usr/local/j2sdk1.4.1/lib
works. I guess not. Add the jar to your classpath, like so:
CLASSPATH=$CLASSPATH:/path/to/your/ecs.jar
export CLASSPATH
(if you are using sh or bash of course)
3) Don't bother building from source. Often it's not worth the
trouble
4) The erroro message on build/build-ecs.sh means either of:
1) The shebang at the start of the script is wrong (i.e.
its not #!/bin/sh and/or points to something that
is not an interpreter
2) It does not have the 'execute' bit set. Check whether
ls -l build/build-ecs.sh has all those 'x' set.
Do chmod a+x build/build-ecs.sh if not.
2) Its not a UNIX file but a DOS file with CR-LF at the
end of lines. Use dos2unix to convert.
Godspeed,
-- David Tonhofer
--On Sunday, September 29, 2002 3:35 AM +0800 damar thapa
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I downloaded ecs-1.4.1.tar.gz, expanded it, copied ecs-1.4.1.jar into
> one of my CLASSPATH directory (/usr/local/j2sdk1.4.1/lib), and tried to
> compile the following code:
>
> import java.io.*;
> import javax.servlet.*;
> import javax.servlet.http.*;
>
>
>
> public class HtmlKonaHello extends HttpServlet {
> public void doGet(HttpServletRequest req, HttpServletResponse res)
> throws ServletException, IOException{
> res.setContentType("text/html");
> PrintWriter out=res.getWriter();
> Html html = new Html()
> .addElement(new Head()
> .addElement(new Title("Demo")))
> .addElement(new Body()
> .addElement(new H1("Demo Header"))
> .addElement(new H3("Sub Header:"))
> .addElement(new Font().setSize("+1")
>
> .setColor(HtmlColor.WHITE)
> .setFace("Times")
> .addElement("The big dog & the little cat chased each other.")));
> out.println(html.toString());
>
> }
> }
>
> I got unresolved messages for HTML class and all its methods. In
> README file, it is said that I have to copy ecs.jar file,located at
> src/java directory, into my CLASSPATH directory, but there is no such
> file in src/java directory. The abovementioned file ie ecs-1.4.1.jar
> was located at ecs-1.4.1 directory, which I renamed it to ecs.jar --
> problem still the same.
>
> To build from the source, I followed the build/README file, ie I ran
> build/build-ecs.sh, but I immediately got ": bad interpreter: No such
> file or directory " error message. What does it mean?
>
> Is my above code okay? and have I missed any thing?
>
> My OS is Debian3.0 (Woody).
>
> Any pointers from the list would be highly appreciated.
>
> Damar
>
>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>