This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I'm running into a problem trying to compile servlets and building a package. Unless I specify the servlet api package specifically when compiling, java can't find it, despite the fact that the package is explicitly described in the path.
additionally, when trying to create a package, I get the following error:
New-Orleans/~/servdev/gryf/523 aodhan $jserv HelloServlet3.java HelloServlet3.java:13: cannot resolve symbol symbol : class HtmlHelper location: package gryf out.println( gryf.HtmlHelper.getHead(" Hello Servlet 3 " ) + ^ HelloServlet3.java:14: cannot resolve symbol symbol : class HtmlHelper location: package gryf "Hello 3!" + gryf.HtmlHelper.getFoot() ); ^ 2 errors
HtmlHelper.java and HelloServlet3.java are both in ~/servdev/gryf/ and both are specified as part of package gryf. If I compile HelloServlet3.java as part of package gryf but without reference to HtmlHelper.java, no problem.