• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Setting classpath using Windows XP Pro

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I've changed my operating system from Windows 2000 to XP and now cannot get servlets to compile using my normal editor. Curiously I can compile from dos using -classpath. I've set path, classpath, JAVA_HOME, and CATALINA_HOME in environment variables. Any non servlet program compiles ok.
Any ideas please?
Thanks
Richard
 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think your compiler can't locate the javax.servlet, javax.servlet.http packages. Your CLASSPATH has to include those.
Hope this helps
Dominic
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I once had a laptop with XP Home edition on it. It wouldn't pick up the CATALINA_HOME environment variable.

Could this be an XP Home issue?
 
Richard Mackney
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your suggestions.
I've now included -classpath in the compile tool of my editor (I use med), and it works ok. I think, as you say,it is an XP issue, I've found a couple of postings about it on other sites. I have XP professional. Very nice OS but this was very frustrating!
Thanks again.
reply
    Bookmark Topic Watch Topic
  • New Topic