Solved

how to use the jdk debugger

Posted on 1997-07-20
2
442 Views
Last Modified: 2013-11-23
Hi,
   I'm trying to use the java jdk debugger (AppletViewer and
   jdb) and the way I understand it, I have to start from
   one of the demo class directory (GraphLayout or TicTacToe,
   or ArcTest)
   with ..\..\bin\AppletViewer -debug example1.html. My class
   path variable is set correctly, and as long I'm not using
   the -debug parameter the viewer load the applet correctly.
   On the other hand with the -debug option, there's a timeout
   and then I get:
   Internal exception:java.net Unknown exception
      at java.net.IndetAdress.getLocalHost(InetAdress.java:294)
      at sun tools.debug:RemoteDebugger <init> (RemoteDebugger
      :java164)
      at sun.tools.ttydebug:TTY<init> <TTY.java.1309>
   etc...

   Apparently they say that the AppletViewer should
   return me a password that I can use with the jdb (from
   another window session??? I'm using win 95) but it looks
   as if this debugger need to have a connection to work,
   why? I'd like to debugg offline simple applications with
   their debugger (I can't buy visual cafe) but it doesn't
   work even with applications that doesn't use remote calls
   or Inet methods.

    Another point:I've try also the recompile
   with import java.tools.debug; in jdk 1.02 from sun and
   the compiler tell me that this is not acceptable although
   my classpath points to the lib\classlib.zip directoy.
0
Comment
Question by:jfbe
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
rembo earned 40 total points
ID: 1223452

Unfortunately, the jdb debugger requires that you have
networking running.  It connects using sockets.

-Tony



0
 

Author Comment

by:jfbe
ID: 1223453
I know it need a connection, it was in my question...but
I wanted to know if there was a way to bypass that since
I've a limited access to internet, this is why I added
'why'?. Anyway, I'll debug with traces and files.
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question