Solved

how to use the jdk debugger

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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 …
This video teaches viewers about errors in exception handling.
Suggested Courses

739 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