My name was Borat Sagdiyev. But the forum does not allow such names.
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." -- Ted Nelson
J. Kevin Robbins wrote:First, that folder is not named "com.example", that's two folders, "\com\example".
Second, and I can't emphasize this enough, do not, I mean, DO NOT start using any IDE at this point. Do everything at the command line the way it's described in the book. Learn to compile and run your programs from the command line or the IDE will just become a crutch and you'll end up not really understanding what you are doing.
I know it's powerfully tempting to dive into an IDE with all the bells and whistles, but do yourself a huge favor and just use a text editor like Notepad++ or EditPad and forget about IDE's for now.
My name was Borat Sagdiyev. But the forum does not allow such names.
Paul Clapham wrote:Not some of the classes, all of them. They are supposed to be in the WEB-INF folder because anything in there is not accessible to the outside world, only to the web application itself. It's a security thing.
As for the IDE, if you're using one which is designed to work with web applications then somewhere there will be a process which makes a web application -- probably a WAR file -- from your project. (There might even be a tutorial about how to use it.) And remember, it isn't your source code which is supposed to go into the web application. It's the compiled classes. So don't be concerned about where your source code is.
My name was Borat Sagdiyev. But the forum does not allow such names.
Ali Gordon wrote:In that case, it seems that Eclipse is designed incorrectly. Why would the creators force us to put the classes outside web-inf (eg. java resources > src), even when we try to create them inside web-inf in eclipse ? I wonder if developers avoid using Eclipse on the job to create web apps because of such reasons.
Ali Gordon wrote:
J. Kevin Robbins wrote:First, that folder is not named "com.example", that's two folders, "\com\example".
Second, and I can't emphasize this enough, do not, I mean, DO NOT start using any IDE at this point. Do everything at the command line the way it's described in the book. Learn to compile and run your programs from the command line or the IDE will just become a crutch and you'll end up not really understanding what you are doing.
I know it's powerfully tempting to dive into an IDE with all the bells and whistles, but do yourself a huge favor and just use a text editor like Notepad++ or EditPad and forget about IDE's for now.
I respectfully disagree. So far, I understood everything.
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." -- Ted Nelson
Ali Gordon wrote:
In that case, it seems that Eclipse is designed incorrectly.
Enthuware - Best Mock Exams and Questions for Oracle Java Certifications
Quality Guaranteed - Pass or Full Refund!
Paul Anilprem wrote:
Ali Gordon wrote:
In that case, it seems that Eclipse is designed incorrectly.
That thought should actually ring a bell in your head that you are not yet ready for IDEs :)
My name was Borat Sagdiyev. But the forum does not allow such names.
Ali Gordon wrote:Then, how do I become ready for such complicated IDEs ?
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." -- Ted Nelson
J. Kevin Robbins wrote:
Finally, learn how to use the javac compiler from the command line including using the -cp switch to pick up the supporting libraries and how to create a jar file. Do not set the CLASSPATH environment variable as it will just have you tearing your hair out.
Enthuware - Best Mock Exams and Questions for Oracle Java Certifications
Quality Guaranteed - Pass or Full Refund!