aspose file tools
The moose likes Servlets and the fly likes is it a bad idea to put jar files in jre/lib/ext? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "is it a bad idea to put jar files in jre/lib/ext?" Watch "is it a bad idea to put jar files in jre/lib/ext?" New topic
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
    
    7

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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: is it a bad idea to put jar files in jre/lib/ext?
 
Similar Threads
please please need configuration
Where to put jar files
about the ext dir
Classpath to mysql-driver
please help in this tag problem