aspose file tools*
The moose likes Servlets and the fly likes servlet compile problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet compile problem" Watch "servlet compile problem" New topic
Author

servlet compile problem

E Weibust
Ranch Hand

Joined: Jun 13, 2003
Posts: 54
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...


---<br />Erik Weibust<br /><a href="http://erik.weibust.net" target="_blank" rel="nofollow">http://erik.weibust.net</a>
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60998
    
  65

~/java/


Is the java folder really under your login folder?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
E Weibust
Ranch Hand

Joined: Jun 13, 2003
Posts: 54
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...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: servlet compile problem