Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Jce

Status
Not open for further replies.

JackTekTips

Programmer
Oct 25, 2002
5
BR
Hello all,

I'm trying to use the JCE , but when i do this:

import javax.cripto.*;

I got the error below:

C:\temp\java\cripto>javac TestCripto.java
TestCripto.java:1: package javax.cripto does not exist
import javax.cripto.*;
^
1 error

I've already set up the classpath with the directory of my .jar file plus my .jar file name like this:

c:\<java directory>\<jce file name>

Does anybody can help me ?

TIA

Jack
 
is the package name good in the cripto class ? Water is not bad as long as it stays out human body ;-)
 
It's
Code:
import javax.crypto.*;
not
Code:
import javax.cripto.*;

MarChelios

 

After sent this message I perceived that I wrote it wrong . It's still not working.

TIA

Jack
 
JackTekTips,
You need to be more specific about what you are doing for us to help you.
Regardless, this might help. JCE is now standard in JDK 1.4. In previous version the Jar files must be placed in the ext directory, which should be under a similar path on your computer:

C:\...\j2sdk1.X.X\jre\lib\ext

This is the directory where Java will look for any package that is not included. Setting the classpath for the optional package should not be necessary if you do this.

Hope this helps,
MarsChelios
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top