This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Precompiling the jar files? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Precompiling the jar files?" Watch "Precompiling the jar files?" New topic

Precompiling the jar files?

rosan samuel
Ranch Hand

Joined: Nov 17, 2010
Posts: 37
could anybody can explain what is the process of precompiling ? what's the usage?

Java Bee
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074

What is the context in which you heard that term? I've heard of "precompiling" before, but it's not a common concept in Java.

I remember this from Microsoft Visual C++. Compiling C++ code can take a long time. To make the compilation process quicker, Visual C++ would precompile C++ header files for you - so it would compile parts of the program in advance, so that everytime you change something, it would not have to compile everything from scratch.

Maybe some IDEs for Java do a similar kind of thing, and that's where you heard of it?

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
rosan samuel
Ranch Hand

Joined: Nov 17, 2010
Posts: 37
Thank you Friend..
I agree ,Because i didn't mean the Which aspect of my question?
But explained the thing is very nice..
Siddhesh Deodhar
Ranch Hand

Joined: Mar 05, 2009
Posts: 117
I remembered doing pre compiling of jsp pages in one of my projects long back. I had done it using ant tasks. After that our GUI used to load faster.

Good, Better, Best, Don't take rest until, Good becomes Better, and Better becomes Best.
Sidd : (SCJP 6 [90%] )
I agree. Here's the link:
subject: Precompiling the jar files?
Similar Threads
what is precompiling a JSP page
WA #1.....word association
Happy New Year! Welcome to our new forums!
Is there a way to stop websphere from compiling jsps in a particular folder?
How to convert xml to pdf form in java