Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > cannot resolve symbol class X500Name

Reply
Thread Tools

cannot resolve symbol class X500Name

 
 
wong_powah@yahoo.ca
Guest
Posts: n/a
 
      06-27-2008
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

 
Reply With Quote
 
 
 
 
RedGrittyBrick
Guest
Posts: n/a
 
      06-27-2008
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
(Encryption Package) error: cannot find symbol symbol: class BaseNCode clusardi2k@aol.com Java 6 08-29-2012 08:33 PM
src-resolve: Cannot resolve the name ... ivanet@gmail.com XML 1 03-23-2007 12:10 PM
Cannot resolve symbol Jo Java 3 04-10-2004 06:12 PM
Re: Cannot resolve Symbol (class) but why? (JSP) @lex-kid Java 2 07-07-2003 07:26 AM
Re: Cannot resolve Symbol (class) but why? (JSP) sufia Java 1 07-06-2003 07:06 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57