请问怎么能让这个java的DES加密解密算法运行

请教如何能让这个java的DES加密解密算法运行?
声明:这个程序是从网上找到的,想要学习DES加密解密算法,所以就借过来用了,但是发现在自己电脑上运行不了,请大牛们帮忙挑错,灰常感谢!!!调试的时候除了几个可以忽略的拼写错误之外,没有其他错了,但是在运行时还是会错,为什么?
import javax.crypto.Cipher;

import javax.crypto.KeyGenerator;

import java.security.*;

import java.io.*;

/**

 * Created by IntelliJ IDEA.

 * User: Administrator

 * Date: Dec 4, 2003

 * Time: 9:29:19 PM

 * To change this template use Options | File Templates.

 *@author xiaoyusong@etang.com

 * 该类是加密处理类.主要用来对数据进行加密,解密操作.

 */

public class DESEncryptUtil {

  /**

  * 获得DES加密的密钥。在交易处理的过程中应该定时更

  * 换密钥。需要JCE的支持,如果jdk版本低于1.4,则需要

  * 安装jce-1_2_2才能正常使用。

  * @return Key 返回对称密钥

  * @throws java.security.NoSuchAlgorithmException

  * @see util.EncryptUtil 其中包括加密和解密的方法

  */

  public static Key getKey() throws NoSuchAlgorithmException {

  Security.insertProviderAt(new com.sun.crypto.provider.SunJCE(), 1);

  KeyGenerator generator = KeyGenerator.getInstance("DES");

  generator.init(new SecureRandom());

  Key key = generator.generateKey();

  return key;

  }

  /**

  * 将指定的数据根据提供的密钥进行加密

  * @param key 密钥

  * @param data 需要加密的数据

  * @return byte[] 加密后的数据

  * @throws util.EncryptException

  */

  public static byte[] doEncrypt(Key key, byte[] data) throws EncryptException {

  try {

  //Get a cipher object

  Cipher cipher = Cipher.getInstance("DES/ECB/PKCS5Padding");

  //Encrypt

  cipher.init(Cipher.ENCRYPT_MODE, key);

  //byte[] stringBytes = amalgam.getBytes("UTF8");

  byte[] raw = cipher.doFinal(data);

  //BASE64Encoder encoder = new BASE64Encoder();

  //String base64 = encoder.encode(raw);

  return raw;

  } catch (Exception e) {

  e.printStackTrace();

  throw new EncryptException("Do encrypt occurs Exception.[" + e.getMessage() + "]");

  }

  }

  /**

  * 将给定的已加密的数据通过指定的密钥进行解密

  * @param key 密钥

  * @param raw 待解密的数据

  * @return byte[] 解密后的数据

  * @throws util.EncryptException

  */

  public static byte[] doDecrypt(Key key, byte[] raw) throws EncryptException {

  try {

  //Get a cipher object

  Cipher cipher = Cipher.getInstance("DES/ECB/PKCS5Padding");

  // Decrypt

  cipher.init(Cipher.DECRYPT_MODE, key);

  //BASE64Decoder decoder = new BASE64Decoder();

  //byte[] raw = decoder.decodeBuffer(data);

  byte[] data = cipher.doFinal(raw);

  //String result = new String(stringBytes, "UTF8");

  //System.out.println("the decrypted data is: " + result);

  return data;

  } catch (Exception e) {

  e.printStackTrace();

  throw new EncryptException("Do decrypt occurs Exception.[" + e.getMessage() + "]");