classnotfoundexception 为什么报错呀,在线求救

无i悔 2007-05-09 09:12:17
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi

package com.chineseall.util;

import java.io.*;
import java.security.SecureRandom;
import javax.crypto.*;
import javax.crypto.spec.DESKeySpec;
//import java.lang.ClassNotFoundException;
//import com.chineseall.util.*;
// Referenced classes of package com.chineseall.util:
// DecryptStart, EbookGlobals

public class Common
{

public static final long f1 = 0xf8f3546db0L;
private final String algorithm = "DES";
public final String encoding = "ISO8859-1";
private SecretKey key;
private Cipher cipher;
private static String catalinaHome = EbookGlobals.getEbookHome();
private ClassLoader loader;
static Class class$com$chineseall$util$Common; /* synthetic field */

public Common()
{
loader = (class$com$chineseall$util$Common != null ? class$com$chineseall$util$Common : (class$com$chineseall$util$Common = class$("com.chineseall.util.Common"))).getClassLoader();
}

public Object invokeDogBiteObjectGetReadData()
throws GeneralSecurityException,IOException,Exception
{
String s = Long.toString((new File(catalinaHome + File.separator + "bin" + File.separator + "bootstrap.jar")).lastModified());
DecryptStart decryptstart = new DecryptStart(s,loader);
Class aclass[] = {
(new String[1]).getClass()
};
return decryptstart.startup(EbookGlobals.getEbookHome() + File.separator + "common" + File.separator + "classes" + File.separator + "p1" + File.separator + "DogBite", "p1.DogBite", "getReadData", null, null);
}

public void invokeDogBiteObjectBite()
throws GeneralSecurityException, IOException, Exception
{
String s = Long.toString((new File(catalinaHome + File.separator + "bin" + File.separator + "bootstrap.jar")).lastModified());
DecryptStart decryptstart = new DecryptStart(s, loader);
decryptstart.startup(catalinaHome + File.separator + "common" + File.separator + "classes" + File.separator + "p1" + File.separator + "DogBite", "p1.DogBite", "bite", null, null);
}

public Object invokeReadPDFObjectGetCurrentNo(String s)
throws GeneralSecurityException, IOException, Exception
{
if(s == null)
return invokeDogBiteObjectGetReadData();
else
return s;
}

public byte[] encrypt(byte abyte0[], String s)
throws GeneralSecurityException, UnsupportedEncodingException
{
byte abyte1[] = s.getBytes();
DESKeySpec deskeyspec = new DESKeySpec(abyte1);
SecretKeyFactory secretkeyfactory = SecretKeyFactory.getInstance("DES");
key = secretkeyfactory.generateSecret(deskeyspec);
SecureRandom securerandom = new SecureRandom();
cipher = Cipher.getInstance("DES");
cipher.init(1, key, securerandom);
byte abyte2[] = cipher.doFinal(abyte0);
return abyte2;
}

public byte[] decrypt(byte abyte0[], String s)
throws GeneralSecurityException, UnsupportedEncodingException
{
byte abyte1[] = s.getBytes();
DESKeySpec deskeyspec = new DESKeySpec(abyte1);
SecretKeyFactory secretkeyfactory = SecretKeyFactory.getInstance("DES");
key = secretkeyfactory.generateSecret(deskeyspec);
SecureRandom securerandom = new SecureRandom();
cipher = Cipher.getInstance("DES");
cipher.init(2, key, securerandom);
byte abyte2[] = cipher.doFinal(abyte0);
return abyte2;
}

static Class class$(String s)
{
return Class.forName(s);
ClassNotFoundException classnotfoundexception;
classnotfoundexception;
throw new NoClassDefFoundError(classnotfoundexception.getMessage());
}

}

报错为 "classnotfoundexception;"不是语句
本人不会JAVA,谢谢大侠们了
...全文
2252 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
Fish_LC 2011-03-13
  • 打赏
  • 举报
回复
无缘无故爆出ClassNotFoundException 很郁闷啊!
yellowzf2 2009-10-16
  • 打赏
  • 举报
回复
http://www.Jar114.Com JAVA类包搜索引擎。能够解决JAVA开发中遇到的“找不到类”
(NoClassDefFoundError、ClassNotFoundException)的错误。
yunqing1028 2008-04-20
  • 打赏
  • 举报
回复
楼上正解
chaoyueziji 2008-03-31
  • 打赏
  • 举报
回复
呵呵,修改成这样就好了!!
static Class class$(String s) {
try {
return Class.forName(s);
} catch (ClassNotFoundException classnotfoundexception) {
throw new NoClassDefFoundError(classnotfoundexception.getMessage());
}

}
上善_若水 2007-11-07
  • 打赏
  • 举报
回复
static Class class$(String s)
{
return Class.forName(s);
ClassNotFoundException classnotfoundexception;
classnotfoundexception;
throw new NoClassDefFoundError(classnotfoundexception.getMessage());
}

这句是乎多的,不过你都return了,为什么还写了下面的代码,有何作用呢,未解!
likgui 2007-06-04
  • 打赏
  • 举报
回复
关注一下。

51,411

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧