Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is it a bad idea to put jar files in jre/lib/ext?

 
avi sinha
Ranch Hand
Posts: 453
Google Web Toolkit Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
Tim Holloway
Saloon Keeper
Posts: 18367
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic