package com.ibm.security.x509 does not exist

Discussion in 'Java' started by wong_powah@yahoo.ca, Jan 30, 2008.

  1. Guest

    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();
    ....
    , Jan 30, 2008
    #1
    1. Advertising

  2. Roedy Green Guest

    On Wed, 30 Jan 2008 12:42:33 -0800 (PST), 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
    Roedy Green, Jan 30, 2008
    #2
    1. Advertising

  3. Guest

    On Jan 30, 4:15 pm, Roedy Green <>
    wrote:
    > On Wed, 30 Jan 2008 12:42:33 -0800 (PST), 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;.
    , Jan 30, 2008
    #3
  4. Arne Vajhøj Guest

    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
    Arne Vajhøj, Jan 31, 2008
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dave
    Replies:
    1
    Views:
    9,720
    Steven Cheng[MSFT]
    Oct 24, 2005
  2. Robert Wells
    Replies:
    4
    Views:
    636
    Default User
    Jun 24, 2008
  3. Akram Baig
    Replies:
    0
    Views:
    319
    Akram Baig
    Apr 7, 2011
  4. Keyset does not exist X509Certificate

    Keyset does not exist at Microsoft.Web.Services.Security.X509.X509

    Keyset does not exist X509Certificate, Jun 12, 2004, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    192
    Keyset does not exist X509Certificate
    Jun 12, 2004
  5. Sonia Sanchez

    Keyset does not exist at Microsoft.Web.Services.Security.X509

    Sonia Sanchez, Jun 12, 2004, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    327
Loading...

Share This Page