LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-10-2005, 06:25 PM   #1
stefanlasiewski
Member
 
Registered: Aug 2003
Location: Berkeley, California, USA
Distribution: Red Hat Enterprise Linux, Debian & Ubuntu
Posts: 92

Rep: Reputation: 16
Java: Overriding a class in /usr/j2se/jre/lib/ext ???


Hi everyone,

I would like to override these classes contained in /usr/j2se/jre/lib/ext .
The jars contain expired certificates, so some security classes are breaking.

jce1_2_1.jar
US_export_policy.jar
local_policy.jar
sunjce_provider.jar

I do not have sufficient permissions to modify /usr/j2se, so I cannot simply replace the jars.

So I placed 4 new jars in the following directory:

/prod/jce1.2.2/

I startup the application, and my CLASSPATH looks like this:

/prod/jce1.2.2/:/prod/APPLICATION_DIR/lib

However, the application still appears to be grabbing the classes from /usr/j2se/jre/lib/ext/ instead of from /prod/jce1.2.2 .

Shouldn't the CLASSPATH override the classes in /usr/java1.3/jre/lib/ext?

I appreciate your help.

Last edited by stefanlasiewski; 08-10-2005 at 06:55 PM.
 
Old 08-11-2005, 06:14 PM   #2
stefanlasiewski
Member
 
Registered: Aug 2003
Location: Berkeley, California, USA
Distribution: Red Hat Enterprise Linux, Debian & Ubuntu
Posts: 92

Original Poster
Rep: Reputation: 16
Post

I think I found the answer.

Normally, you cannot override those core classes. See here:

http://java.sun.com/docs/books/tutor...sics/load.html

However, you can sometimes override the core classes with "-Xbootclasspath".
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Relocat /usr/lib and /usr/lib64 to a different path schokshi Fedora 3 08-30-2005 09:14 PM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM
Installing software, /usr/lib directory and /usr/local millertime Linux - Software 2 07-10-2004 09:21 AM
/usr/lib and /usr/local/lib doxxan Slackware 5 06-15-2004 12:58 AM
Relationship between /usr/bin and /usr/lib glume Linux - Newbie 4 04-16-2004 08:11 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration