package com.ibm.security.x509 does not exist

W

wong_powah

How to fix this compile error with jdk 1.5.0_14 on windows 2000:
AsnName.java:144: package com.ibm.security.x509 does not exist
encoding = (new
com.ibm.security.x509.X500Name(mName)).getEncoded();
....
 
R

Roedy Green

How to fix this compile error with jdk 1.5.0_14 on windows 2000:
AsnName.java:144: package com.ibm.security.x509 does not exist
encoding = (new
com.ibm.security.x509.X500Name(mName)).getEncoded();
...

That sounds like a JCE class. In 1.4+ it comes with the JDK.

Normally you don't use vendor specific classes. You get at them via
the generic interfaces with strings to define which implementation you
want.

See http://mindprod.com/jgloss/jce.html

However, the classes you want probably live in

F:\Program Files\Java\jdk1.6.0_04\jre\lib\jce.jar

Just put the jar on your ide's library path.
 
W

wong_powah

That sounds like a JCE class. In 1.4+ it comes with the JDK.

Normally you don't use vendor specific classes. You get at them via
the generic interfaces with strings to define which implementation you
want.

Seehttp://mindprod.com/jgloss/jce.html

However, the classes you want probably live in

F:\Program Files\Java\jdk1.6.0_04\jre\lib\jce.jar

Just put the jar on your ide's library path.

I still have the same error even though CLASSPATH is set:
CLASSPATH=C:\Program Files\Java\jre1.5.0_14\lib\jce.jar;.
 
A

Arne Vajhøj

How to fix this compile error with jdk 1.5.0_14 on windows 2000:
AsnName.java:144: package com.ibm.security.x509 does not exist
encoding = (new
com.ibm.security.x509.X500Name(mName)).getEncoded();

Do you have some code that requires IBM Java and
try to build with SUN Java ?

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top