• 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

Classpath weirdness

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am currently having trouble with classpaths when compiling servlets.
First, when i tried setting up my classpath and pointing it to j2ee.jar (that's using SET CLASSPATH= j2ee directory plus j2ee.jar), here's what happens.
1. I can compile servlets
2. but i cannot compile ordinary classes anymore.
When i remove the CLASSPATH, here's what i get,
1. I cannot compile servlets anymore coz it looking for the javax.* library
2. BUT I CAN NOW compile ordinary classes.
Any feedback re: my problem would be appreciated. Thanks!
bahaw
 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Use ,
set CLASSPATH=%CLASSPATH%;c:\j2ee\lib\j2ee.jar
This will add j2ee.jar to your existing classpath
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is a nice discussion of classpath setting in the "findingclasses.html" file in the docs/tooldocs directory of your SDK installation.
Bill
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic