what is the server..and how the j2ee server will interpret the code into bytes, and why we should we use "javac" for compilation and "java" ro run, what are the uses of the contents in the server..(bin,lib..etc) pls help me
In much parlance, a 'server' is a JVM. I know much of my discussions about a Server turns into a discussion about a JVM handling client-server requests. But, that's a pretty broad term.
About a J2EE server using bytecode? A J2EE server will consume EAR files, which have all Servlets and EJBs in a compiled, bytecode form. So, everythign in the ear, well maybe not JSPs, are compiled. Since the J2EE server is implemented on a JVM, the JVM writes bytecode.
I do alot of J2EE work. I never run javac on an ear. The development tools always do that for you. Now, when I'm hacking out just Java code on the SDK, I use javac all the time.
Create symphonies in seed and soil. For this tiny ad: