Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
    Bookmark Topic Watch Topic
  • New Topic

Need of APIs on application server

 
jignesh soni
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Report post to moderator
A source code is written using package imported in the code on the desktop. When this code is compiled, doe the compiler just check the availability of package on the desktop and compile the code or does it actually import the package at compile time ? If package is imported in the code and byte code is created, does the application server need only JRE or does it still need all the packages imported in the source code ?
If packages are not imported in the code at compile time, then all the packages will be required o the server in order to import tyhem at runtime.
My confusion is at what point of time , is the package imported in the source code ? Do these packages need to be on both the machines where source code is created and where byte code is deployed ?

Please explain
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question twice. Please continue any discussion in your original post onthis topic
 
    Bookmark Topic Watch Topic
  • New Topic