When using DDD to debug java you must, as well as following the steps in the example you have provided, set the classpath that JDB uses to find your files. Otherwise you will see the message 'Cannot Access Class Test' that you are seeing.
To do this, in DDD click Edit, then JDB Settings, then type '.' (not including quote marks) in the classpath field. This will cause JDB to search in the current directory when looking for your example java code.
For more information about the java classpath and what it does, see
发布评论
评论(2)
使用 DDD 调试 java 时,您必须按照您提供的示例中的步骤设置 JDB 用于查找文件的类路径。否则,您将看到您所看到的消息“无法访问类测试”。
为此,请在 DDD 中单击“编辑”,然后单击“JDB 设置”,然后键入“.”。 (不包括引号)在类路径字段中。这将导致 JDB 在查找示例 java 代码时在当前目录中进行搜索。
有关 java 类路径及其用途的更多信息,请参阅
http://en.wikipedia。 org/wiki/Classpath_%28Java%29
希望这会有所帮助。
约翰
When using DDD to debug java you must, as well as following the steps in the example you have provided, set the classpath that JDB uses to find your files. Otherwise you will see the message 'Cannot Access Class Test' that you are seeing.
To do this, in DDD click Edit, then JDB Settings, then type '.' (not including quote marks) in the classpath field. This will cause JDB to search in the current directory when looking for your example java code.
For more information about the java classpath and what it does, see
http://en.wikipedia.org/wiki/Classpath_%28Java%29
Hope this helps.
John
使用以下命令的简单 java 程序:
simple java program that works with these commands: