cannot resolve symbol class X500Name

W

wong_powah

Why this compile error?
ASNName.java:86: cannot resolve symbol
symbol : class X500Name
location: package x509
return new sun.security.x509.X500Name(mName);

even though
I have:
import java.security.*;
in my .java file.

export CLASSPATH=.:/usr/java14/jre/lib/security.jar

The /usr/java14/jre/lib/security/java.security file has this line:
security.provider.1=sun.security.provider.Sun

# java -version
java version "1.4.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1)
Classic VM (build 1.4.1, J2RE 1.4.1 IBM AIX build ca1411ifx-20040810
(141SR3) (JIT enabled: jitc))

# uname -a
AIX aix1 3 5 00CC111E4C00
 
R

RedGrittyBrick

Why this compile error?
ASNName.java:86: cannot resolve symbol
symbol : class X500Name
location: package x509
return new sun.security.x509.X500Name(mName);

even though
I have:
import java.security.*;
in my .java file.

import java.security.*

will import
java.security.x509 (if it existed)

but will not import either
java.security.x509.X500Name
sun.security.x509

The first because packages don't nest. The package
java.security.x509.X500Name would not be not inside the package
java.security.x509 (if either existed)

The second because java != sun.

HTH.
 

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

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top