Why cache jars ?

I see that there are a lot of files in the IDEA_HOME/system/cache folder. They seem to be copies of any jar(s) that I configure as libraries as wella as the JDK jars. Why does IDEA waste disk space by creating a duplicate copy of all the jars ?

0
5 comments
Avatar
Permanently deleted user

I always wondered why IDEA stopped for a while
saying "copying jars" on startup...

This is indeed annoying if you have >50 jars on
the classpath, and I can't see what for.

0

That's because some people complained that IDEA locked the jars and they could not put newer versions of them without shutting down IDEA.

So IDEA now cashes the jars and locks those copies. As I understand it IDEA will update the cashed jars as soon as you put newer versions in their original place.

0

Seems I'm dreaming of money.

Whereever I wrote "cash" I actually meant "cache". :)

0
Avatar
Permanently deleted user

"Darshan Singh" <itnadmin@jetbrains.com> wrote in message
news:6140079.1034133453176.JavaMail.jrun@is.intellij.net...

I see that there are a lot of files in the IDEA_HOME/system/cache folder.

They seem to be copies of any jar(s) that I configure as libraries as wella
as the JDK jars. Why does IDEA waste disk space by creating a duplicate copy
of all the jars ?

Many projects have commands that modify jars in libraries/classpath.
As these are opened by idea, modifying the jars involved closing idea
running the command and starting idea again.
To obviate this, idea started mantaing copies of jars in the cache folder
and watches the source jars for modifications.


0
Avatar
Permanently deleted user

I just wish they would do that for the plugins ;-(
"Carlos Costa e Silva" <carlos@keysoft.pt> wrote in message
news:ao1dn7$evt$1@is.intellij.net...

"Darshan Singh" <itnadmin@jetbrains.com> wrote in message
news:6140079.1034133453176.JavaMail.jrun@is.intellij.net...

I see that there are a lot of files in the IDEA_HOME/system/cache

folder.

They seem to be copies of any jar(s) that I configure as libraries as

wella

as the JDK jars. Why does IDEA waste disk space by creating a duplicate

copy

of all the jars ?

>

Many projects have commands that modify jars in libraries/classpath.
As these are opened by idea, modifying the jars involved closing idea
running the command and starting idea again.
To obviate this, idea started mantaing copies of jars in the cache folder
and watches the source jars for modifications.

>
>


0

Please sign in to leave a comment.