I dont discourage you doing compilations the hardcore way, but i recommend using a JavaIDE of your choice (Eclipse, IntelliJIdea, Netbeans...there are a lot options). The IDE will take care of the compilation stuff & will make your life easy.
Yes it can be done, we just have to figure out how.
Mansukhdeep Thind wrote:If you are using Windows, then why are you using ":"? You should be using ";" to separate files in class-path. I am not sure of myself if this is causing the problem. Just try and let me know.
Additionally, you could try one more thing. Set the class path explicitly before attempting to compile your java file as follows:
set classpath= C:\Development\apache-tomcat-7.0.35\lib\servlet-api.jar;<any other classes/jars files separated by ;>
Then fire the javac command. Let me know if this works.
Very good! I am following a book that uses a Mac for its coding exercises.