File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 15092

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 8 API documentation
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: 118
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?
It's not a secret anymore!