aspose file tools
The moose likes Servlets and the fly likes Urgent Help! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Urgent Help!" Watch "Urgent Help!" New topic

Urgent Help!

Othmar Stehlik
Ranch Hand

Joined: Jul 24, 2001
Posts: 36
I just started with Servlet, Tomcat runs fine and I also got my first Servlet working, but I placed the .class file with copy/paste in the WEB-INF/classes dir.
First I used javac -d c:\..\WEB-INF\classes.*java from the src dir, but the class file appeared in the src dir.
Please help!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16389

If that's literally how you typed it, that's your problem.
Try: "javac -d ../WEB-INF/classes *.java
If your directories are:

Then you should get the proper results. I prefer the forward slashes even under Windows, but your actual problem was in not leaving a space after the destination directory name (plus having a questionable destination path syntax).

Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
subject: Urgent Help!