![]() |
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 |
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:33 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.