Results 1 to 8 of 8

Thread: Can't Compile

  1. #1
    sidk47 is offline Member
    Join Date
    Jun 2010
    Posts
    4
    Rep Power
    0

    Default Can't Compile

    Sorry for this totally noob question.
    I can't compile a servlet.
    What do I have to do to be able to compile a servlet?
    What do I have to add to my classpath?
    Attached Thumbnails Attached Thumbnails Can't Compile-captured.jpg  

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,307
    Rep Power
    25

    Default

    How are you trying to compile the code? What error messages do you get?
    Copy and paste them here.

  3. #3
    sidk47 is offline Member
    Join Date
    Jun 2010
    Posts
    4
    Rep Power
    0

    Default I can compile

    I am very sorry. But I was getting errors like can't find symbol and javax.servlet.* not found, etc.

    But when I tried to re-open command prompt and compile again, I am suddenly able to.

    I shall include my class-path here for everyone's benefit, and mark this thread as solved.

    Thanks to Norm who replied.

    But it would still be nice to know what is needed to compile a servlet. I have attached an image of the java stuff I have in Program Files.

    I also include below my classpath under Windows XP->My Computer->Environment Variables:
    C:\Program Files\PC Connectivity Solution\;%SystemRoot%\system32;%SystemRoot%;%Syst emRoot%\System32\Wbem;C:\Program Files\Java\jdk1.6.0_07\bin;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\0 Applications\jEdit;C:\Program Files\Java\jswdk-1.0.1\lib

    Thanking all,
    Siddharth

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,307
    Rep Power
    25

    Default

    what is needed to compile a servlet.
    There are classes defined in some jar file that are necessary to compile them.

  5. #5
    sidk47 is offline Member
    Join Date
    Jun 2010
    Posts
    4
    Rep Power
    0

    Default One more query

    Which JAR file Norm? The one in JWSDK or JSDK?

  6. #6
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,307
    Rep Power
    25

    Default

    can't find symbol and javax.servlet.* not found
    The one(s) that contains the above.

  7. #7
    sidk47 is offline Member
    Join Date
    Jun 2010
    Posts
    4
    Rep Power
    0

    Default

    With what software do I see what's inside a JAR file?

  8. #8
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,307
    Rep Power
    25

    Default

    A jar file is almost the same as a zip file. Any utility that can read a zip should be able to read a jar file.

Similar Threads

  1. Help with compile
    By mr_anderson in forum NetBeans
    Replies: 7
    Last Post: 06-10-2010, 04:03 AM
  2. .java won't compile
    By paul21 in forum New To Java
    Replies: 4
    Last Post: 03-30-2010, 06:58 AM
  3. doesn't compile?!
    By jon80 in forum New To Java
    Replies: 8
    Last Post: 06-14-2008, 05:42 PM
  4. Compile Issue
    By CrazyShells Slam in forum New To Java
    Replies: 4
    Last Post: 05-14-2008, 08:51 PM
  5. Not able to compile
    By bugger in forum New To Java
    Replies: 2
    Last Post: 01-09-2008, 10:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •