• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

unable to compile servlet

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi ranchers, please help me regarding servlet compilation.I am using ubantu 8 linux.The problem is when I create servlets java file and try to compile using javac -classpath [path to servlet-api.jar] -d classes [path to java file]

It gives out errors like http not found .javax.servlet not found etc.
how to set classpath in ubantu linux.

finally I gave up doing it in ubantu and started learning using eclipse in windowns xp platform.
But I want to know is it better to use eclipse to manage all these things like creating a servlet class file and project files creation.

But I want to practice each and every step in HFSJ book .Please clear my doubt.
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

It gives out errors like http not found .javax.servlet not found etc.


It means that the compiler did not find servlet-api.jar file. Check your path. Please post your command line, and the exact error message.

But I want to know is it better to use eclipse to manage all these things like creating a servlet class file and project files creation.


It's not better, but it will save you time, as long as your familiar with Eclipse. I don't know how the examples in HFSJ but I guess that they are small enough to be easily compiled from the command line.
 
vijaya saradhi
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks a lot Christophe.
I ll check
 
reply
    Bookmark Topic Watch Topic
  • New Topic