> Hi
> I get the above error when i try to compile a java program. I have
> included it in the CLASSPATH. The CLASSPATH looks like this:
The Java tools (java.exe and javac.exe) need to be on the PATH, not the
CLASSPATH. You shouldn't even need a CLASSPATH environment variable.
Dan.

Signature
Daniel Dyer
http://www.uncommons.org
cormacdebarra@gmail.com - 12 Nov 2006 01:57 GMT
Javac works now. My program also extends the servlet class. but it now
gives me 6 errors.....package javac.servlet does not exist.
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class BeerSelect extends HttpServlet
{
public void doPost(HttpServletRequest request,HttpServletResponse
response)throws IOException, ServletException
{.........................
How would one go about fixing this?
Thanks
cormacdebarra@gmail.com - 12 Nov 2006 01:57 GMT
Javac works now. My program also extends the servlet class. but it now
gives me 6 errors.....package javac.servlet does not exist.
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class BeerSelect extends HttpServlet
{
public void doPost(HttpServletRequest request,HttpServletResponse
response)throws IOException, ServletException
{.........................
How would one go about fixing this?
Thanks
suken - 13 Nov 2006 04:50 GMT
> Javac works now. My program also extends the servlet class. but it now
> gives me 6 errors.....package javac.servlet does not exist.
[quoted text clipped - 12 lines]
> How would one go about fixing this?
> Thanks
Try ading j2ee.jar in your classpath.
Try actually running the javac command from the bin directory. That's
probably the best start.
I've got some free multimedia tutorials on running compiling and
running code with javac and the java command line utilities. Check them
out at www.mcnz.com They're free. ;)
Cheers!
-Cameron McKenzie
Free Java Certification Mock Exams: www.scja.com
Free Multimedia Tutorials: www.mcnz.com
www.examscam.com www.technicalfacilitation.com www.cameronmckenzie.com
> Hi
> I get the above error when i try to compile a java program. I have
[quoted text clipped - 9 lines]
> Please help before i go insane
> Thanks