Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Java (http://www.velocityreviews.com/forums/f30-java.html)
-   -   cannot resolve symbol class X500Name (http://www.velocityreviews.com/forums/t622593-cannot-resolve-symbol-class-x500name.html)

wong_powah@yahoo.ca 06-27-2008 04:11 PM

cannot resolve symbol class X500Name
 
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


RedGrittyBrick 06-27-2008 05:26 PM

Re: cannot resolve symbol class X500Name
 
wong_powah@yahoo.ca wrote:
> 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.


--
RGB


All times are GMT. The time now is 04:57 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.