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

servlet compile problem

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am having an annoying problem. I am trying to compile a servelt on my XP box. When I compile from my cygwin cmd line I get a number of errors all related to packages or classes not being found. When I compile in a Win cmd line I have no problems. I am using the same javac command at both prompts, just switching the way I format my -classpath arg.

Win XP:
javac -classpath C:\java\jakarta-tomcat-5.0.28\common\lib\servlet-api.jar;. -d classes src/com/example/web/*.java

Cygwin:
javac -classpath ~/java/jakarta-tomcat-5.0.28/common/lib/servlet-api.jar:. -d classes src/com/example/web/*.java

Here are a few of the Exceptions I'm getting:
src/com/example/web/BeerSelect.java:3: package javax.servlet does not exist
import javax.servlet.*;
^
src/com/example/web/BeerSelect.java:4: package javax.servlet.http does not exist
import javax.servlet.http.*;

I know this is going to be something stupid/easy to resolve, but I'm not making much progress.

Thanks for the help...
 
Sheriff
Posts: 67750
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

~/java/



Is the java folder really under your login folder?
 
E Weibust
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, that is a sym link.

In windows:
C:\java
C:\java\source
C:\java\tomcat

In cygwin:
cygdrive\c\java

So in cygwin I made a sym link that is in ~ and points to cygdrive\c\java

Thanks...
 
"How many licks ..." - I think all of this dog's research starts with these words. Tasty tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic