| Author |
is it a bad idea to put jar files in jre/lib/ext?
|
avi sinha
Ranch Hand
Joined: Mar 15, 2009
Posts: 452
|
|
i know how to set the classpath to include servlet-api.jar and jsp-api.jar located in the tomcat's installation directory while compiling servlets etc.
but some days ago , an idea came to my mind to put those files in jre/lib/ext and to use a nice java editor like geany (which doesn't give code suggestion while writing the code). so after this i don't have to open terminal , set the classpath etc.
i just want to know that - is there any side-effect of using jar files like this ??
avi sinha
|
SCJP 5.0 SCWCD 5.0
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14480
|
|
As a general rule, you shouldn't add jars to the JDK/JRE library directories. You can compromise system integrity and you may end up with confusion when different runtimes work differently because they don't all include the same core kits.
There are exceptions to this rule, but they're special cases, normally having to do with special products and services and the supplier will give specific directions on how and where (and when) to break that rule. But for general jars, it's better not to.
|
Customer surveys are for companies who didn't pay proper attention to begin with.
|
 |
 |
|
|
subject: is it a bad idea to put jar files in jre/lib/ext?
|
|
|