The Artima Developer Community
Sponsored Link

Java Answers Forum
encryption/security problems

1 reply on 1 page. Most recent reply: Sep 27, 2002 12:50 PM by Lynn Hollerman

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Lynn Hollerman

Posts: 67
Nickname: gmholler
Registered: Mar, 2002

encryption/security problems Posted: Sep 27, 2002 8:04 AM
Reply to this message Reply
Advertisement
I am running the Java 2 SDK, v 1.4.0, on a Solaris system under Sun OS 5.8. I am trying to test encryption/decryption using Java. I have run
several examples, including the one called "EncryptTest" in "Exploring the Security Changes of the 1.4 Release of the Java TM 2 Platform Standard Edition (J2SE TM )" found on the Sun site, as well as some found here and in other references, and they all have the same result - a runtime error concerning a "NoSuchMethodError". The full trace looks
like this:

Exception in thread "main" java.lang.NoSuchMethodError
at javax.crypto.SunJCE_d.a(DashoA6275)
at javax.crypto.SunJCE_d.a(DashoA6275)
at javax.crypto.SunJCE_d.verify(DashoA6275)
at javax.crypto.SunJCE_b.f(DashoA6275)
at javax.crypto.SunJCE_b.<clinit>(DashoA6275)
at javax.crypto.KeyGenerator.getInstance(DashoA6275)
at EncryptTest.main(EncryptTest.java:20)

I have checked my java.security file (which has not been altered since 1.4.0 was installed in Feb. 2002), and the security providers suggested by Sun all appear to be there. What does this error indicate, and what should my action to correct it be?

Thanks!

Lynn.


Lynn Hollerman

Posts: 67
Nickname: gmholler
Registered: Mar, 2002

Re: encryption/security problems Posted: Sep 27, 2002 12:50 PM
Reply to this message Reply
I realize it's bad form to answer your own question, but I *think* I've figured this one out, with some help from a forum on the Sun site.

There, a similar problem to the one I was having was described, but it also involved the Windows registry - being on a Solaris box, that does me no good. But - one thing it brought to light was that the error I was seeing was an error that was largely a result of having more than one version of Java (in my case, 1.3 and 1.4) installed. On my system, 1.3 comes along as the default; 1.4 was primarily used by my machine. According to the query I did for my CLASSPATH, that's what was being used. I took for granted that the 1.4 executable was also the one on my PATH - it wasn't!

Moral of the story - while I've forever been plagued with something not compiling right because of my CLASSPATH definition, I still need to remember to have my PATH defined right!

Lynn.

Flat View: This topic has 1 reply on 1 page
Topic: HELP: Counting Down Using a Loop Previous Topic   Next Topic Topic: Fetching japanese characters through jdbc

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use