Solved

how to use the jdk debugger

Posted on 1997-07-20
2
439 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
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
servlet doXXX methods 3 62
egit plugin on eclipse 8 82
Groovy problem when using SOAPUI : DispatchException occurred 7 60
hibernate example for saving data 19 55
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

828 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