Commandline compiler error?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ziycon
    Contributor
    • Sep 2008
    • 384

    Commandline compiler error?

    I'm compiling via the command line using javac.exe and I'm getting the below errors, I figure its due to a classpath not being set but I'm unsure where its should be set too?

    I've tried running the below but it didn't help, still same errors:
    Code:
    set classpth=C:\WebSphere\AppServer\lib\servlet.jar
    Code:
    Package javax.servlet not found in import.
    import javax.servlet.*;
           ^
    Package javax.servlet.http not found in import.
    import javax.servlet.http.*;
           ^
    Superclass HttpServlet of class NewMM not found.
    public class NewMM extends HttpServlet
                                         ^
    I'm using the JDK that came with WebSphere so I think its java 1.4.

    Any help much appreciated.
  • Dheeraj Joshi
    Recognized Expert Top Contributor
    • Jul 2009
    • 1129

    #2
    Check the environment variables and figure out is the class path proper?

    Regards
    Dheeraj Joshi

    Comment

    Working...