package com.ibm.security.x509 does not exist  
Author Message
wong_powah





PostPosted: 2008-1-31 4:43:00 Top

java-programmer, package com.ibm.security.x509 does not exist 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();
...
 
Roedy Green





PostPosted: 2008-1-31 5:16:00 Top

java-programmer >> package com.ibm.security.x509 does not exist On Wed, 30 Jan 2008 12:42:33 -0800 (PST), email***@***.com wrote,
quoted or indirectly quoted someone who said :

>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.


--
Roedy Green, Canadian Mind Products
The Java Glossary, http://mindprod.com
 
wong_powah





PostPosted: 2008-1-31 6:15:00 Top

java-programmer >> package com.ibm.security.x509 does not exist On Jan 30, 4:15 pm, Roedy Green <email***@***.com>
wrote:
> On Wed, 30 Jan 2008 12:42:33 -0800 (PST), email***@***.com wrote,
> quoted or indirectly quoted someone who said :
>
> >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.
>
> 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.
>
> --
> Roedy Green, Canadian Mind Products
> The Java Glossary,http://mindprod.com

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





PostPosted: 2008-1-31 9:56:00 Top

java-programmer >> package com.ibm.security.x509 does not exist email***@***.com wrote:
> 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