C:\YingSoft\YingJAD>javac -g helpDecompile.javaC:\YingSoft\YingJAD>jdb helpDecompile.java
Initializing jdb ...
> stop at helpDecompile:32
Deferring breakpoint helpDecompile:32.
It will be set after the class is loaded.
> run
run helpDecompile.java
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
>
VM Started:
Exception occurred: java.lang.ClassNotFoundException (uncaught)"thread=main", ja
va.net.URLClassLoader$1.run(), line=198 bci=72main[1]
/********************************************************************************/
首先说明我用Javac,java编译和执行都没有问题.
为何调试的时候会出现ClassNotFoundException异常
Initializing jdb ...
> stop at helpDecompile:32
Deferring breakpoint helpDecompile:32.
It will be set after the class is loaded.
> run
run helpDecompile.java
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
>
VM Started:
Exception occurred: java.lang.ClassNotFoundException (uncaught)"thread=main", ja
va.net.URLClassLoader$1.run(), line=198 bci=72main[1]
/********************************************************************************/
首先说明我用Javac,java编译和执行都没有问题.
为何调试的时候会出现ClassNotFoundException异常
解决方案 »
- 菜鸟求助
- 用纯java驱动方式访问SqlServer2005数据库,遇到一个com.microsoft.sqlserver.jdbc.SQLServerException
- 读取远程SQLSERVER的2进制字段在本地生成文件后,插入到本地ORACLE的LONG RAW字段报"数据大小超出此类型的最大值"错
- 怎么产生指定范围内的,不重复的随机数,保存有数组中
- 为什么右键没起作用!右键点不出来....
- JTabbedPane导致JPanel频繁调用paint
- applet点击后,只更新同页中的iframe中的页面.该如何设计和实现???
- 请教cs结构的几个问题
- <请问>如何计算 "1+1" 的值?
- 谁能提供最快的办法把byte[]里的所有字节全部放到String里
- windows 2003 jdbc驱动 连接 sqlserver2000 问题
- 散分了
Initializing jdb ...
> stop at helpDecompile
Usage: stop at <class>:<line_number> or
stop in <class>.<method_name>[(argument_type,...)]
> stop at helpDecompile:1
Deferring breakpoint helpDecompile:1.
It will be set after the class is loaded.
> run
run helpDecompile
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
>
VM Started: Unable to set deferred breakpoint helpDecompile:1 : No code at line
1 in helpDecompileStopping due to deferred breakpoint errors.
No frames on the current call stack加上-classpath参数后,上面的问题就解决了,但出现了No code at line
1 in helpDecompile
什么原因啊?
/*****************************************************************************/
原代码如下所示
class test
{int a;int b;test(int aa,int bb){a = aa;b = bb;}int add(){return a+b;}}public class helpDecompile{public static void main(String args[]){int a = 2;int b = 3;int c= a+b;System.out.println(c); test kk=new test(1,2);System.out.println(kk.add());}
}