Re: ecs newbies - help needed
Stephan Nagy <[email protected]> Sat, 28 Sep 2002 09:27:49 -0500
| Newsgroups | gmane.comp.jakarta.ecs.user |
|---|---|
| Message-ID | <005f01c266fb$39273350$6401a8c0@ATLANTIS> |
Copy it to /usr/local/j2sdk1.4.1/lib/ext or whereever the ext directory is in your jvm, I forget at the moment it's either lib/ext or jre/lib/ext. -stephan ----- Original Message ----- From: "damar thapa" <[email protected]> To: <[email protected]> Sent: Saturday, September 28, 2002 2:35 PM Subject: ecs newbies - help needed > 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]> >