Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

about the java/j2ee server  RSS feed

 
raja vishnu murthy
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Regards,

-Cameron
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!