wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes explain this line javac Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "explain this line javac" Watch "explain this line javac" New topic

explain this line javac

ankittt agarwala
Ranch Hand

Joined: Jan 19, 2011
Posts: 42
javac -classpath c:\lib\servlet-api.jar;classes;. -d classes src\com\example\web.teaselect.java
i skipped the bold part of command and error ocurred com.example.modell directory not found
does it have any connection with the directory structure,i had written import com.example.modell in coding of teaselect.java actually.....
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 38087
Obviously some class you have a dependency on is in that classes directory

By the way, why are you mixing \ and /? You can usually get away with / instead of \ on Windows, but \ is the correct path separator.
ankittt agarwala
Ranch Hand

Joined: Jan 19, 2011
Posts: 42
actually the above line is from third chap of headfirst servelets and jsp.........a little modified according to my directory structure
explain it in a better way...and i have corrected the structure
I agree. Here's the link: http://aspose.com/file-tools
subject: explain this line javac
Similar Threads
javac: directory not found: classes
Compiling a servlet
Problems compiling packages #2 with JSP
compilation command
K&B 6 book Page 792